Interface ClassPathOpener.Consumer
- Enclosing class:
ClassPathOpener
public static interface ClassPathOpener.Consumer
Callback interface for
ClassOpener.-
Method Summary
Modifier and TypeMethodDescriptionvoidonException(Exception ex) Informs consumer that an exception occurred while processing this path element.voidonProcessArchiveStart(File file) Informs consumer that processing of an archive file has begun.booleanprocessFileBytes(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
processFileBytesand 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
-