Package com.android.dx.cf.direct
Interface ClassPathOpener.Consumer
- Enclosing class:
ClassPathOpener
public static interface ClassPathOpener.Consumer
Callback interface for
ClassOpener
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
onException
(Exception ex) Informs consumer that an exception occurred while processing this path element.void
onProcessArchiveStart
(File file) Informs consumer that processing of an archive file has begun.boolean
processFileBytes
(String name, long lastModified, byte[] bytes) Provides the file name and byte array for a class path element.
-
Method Details
-
processFileBytes
Provides the file name and byte array for a class path element.- Parameters:
name
-non-null;
filename of element. May not be a valid filesystem path.lastModified
- milliseconds since 1970-Jan-1 00:00:00 GMTbytes
-non-null;
file data- Returns:
- true on success. Result is or'd with all other results
from
processFileBytes
and returned to the caller ofprocess()
.
-
onException
Informs consumer that an exception occurred while processing this path element. Processing will continue if possible.- Parameters:
ex
-non-null;
exception
-
onProcessArchiveStart
Informs consumer that processing of an archive file has begun.- Parameters:
file
-non-null;
archive file being processed
-