Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# ZipPathValidator.Callback


`
public
static


interface
ZipPathValidator.Callback
`


`


`

|---|
| dalvik.system.ZipPathValidator.Callback |

<br />

*** ** * ** ***

Interface that defines the core validation mechanism when accessing zip file entry paths.

## Summary

| ### Public methods ||
|---|---|
| ` default void` | ` https://developer.android.com/reference/dalvik/system/ZipPathValidator.Callback#onZipEntryAccess(java.lang.String)(https://developer.android.com/reference/java/lang/String path) ` Called to check the validity of the path of a zip entry. |

## Public methods

### onZipEntryAccess

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void onZipEntryAccess (String path)
```

Called to check the validity of the path of a zip entry. The default implementation
accepts all paths without raising any exceptions.


This method will be called by `https://developer.android.com/reference/java/util/zip/ZipInputStream#getNextEntry()` or
`https://developer.android.com/reference/java/util/zip/ZipFile#ZipFile(java.lang.String)`.

<br />

| Parameters ||
|---|---|
| `path` | `String`: The name of the zip entry. This value cannot be `null`. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/util/zip/ZipException` | If the zip entry is invalid depending on the implementation. |