Added in API level 34

Callback

interface Callback
dalvik.system.ZipPathValidator.Callback

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

Summary

Public methods
open Unit

Called to check the validity of the path of a zip entry.

Public methods

onZipEntryAccess

Added in API level 34
open fun onZipEntryAccess(path: String): Unit

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 java.util.zip.ZipInputStream#getNextEntry or java.util.zip.ZipFile#ZipFile(String).

Parameters
path String: The name of the zip entry. This value cannot be null.
Exceptions
java.util.zip.ZipException If the zip entry is invalid depending on the implementation.