Added in API level 34
ZipPathValidator.Callback
public
static
interface
ZipPathValidator.Callback
| dalvik.system.ZipPathValidator.Callback |
Interface that defines the core validation mechanism when accessing zip file entry paths.
Summary
Public methods | |
|---|---|
default
void
|
onZipEntryAccess(String path)
Called to check the validity of the path of a zip entry. |
Public methods
onZipEntryAccess
Added in API level 34
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 ZipInputStream.getNextEntry() or
ZipFile.ZipFile(String).
| Parameters | |
|---|---|
path |
String: The name of the zip entry.
This value cannot be null. |
| Throws | |
|---|---|
ZipException |
If the zip entry is invalid depending on the implementation. |