com.android.dx.cf.direct
Interface ClassPathOpener.Consumer

Enclosing class:
ClassPathOpener

public static interface ClassPathOpener.Consumer

Callback interface for ClassOpener.


Method Summary
 void 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 Detail

processFileBytes

boolean processFileBytes(String name,
                         long lastModified,
                         byte[] bytes)
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 GMT
bytes - non-null; file data
Returns:
true on success. Result is or'd with all other results from processFileBytes and returned to the caller of process().

onException

void onException(Exception ex)
Informs consumer that an exception occurred while processing this path element. Processing will continue if possible.

Parameters:
ex - non-null; exception

onProcessArchiveStart

void onProcessArchiveStart(File file)
Informs consumer that processing of an archive file has begun.

Parameters:
file - non-null; archive file being processed


Copyright © 2015. All rights reserved.