public interface ClassFileEntry
| Modifier and Type | Method and Description |
|---|---|
ClassFileInput |
getInput()
Return the
ClassFileInput that has produced this entry |
java.lang.String |
getRelativePath()
Return the relative path from the root of the archive/folder abstraction.
|
long |
getSize()
Returns the entry size in bytes.
|
java.lang.String |
name()
Returns the entry name.
|
byte[] |
readAllBytes()
Read the content into a newly allocated byte[].
|
int |
readAllBytes(byte[] bytes)
Read the content of the file into an existing byte[]
|
static java.lang.String |
withDexExtension(java.lang.String classFilePath)
Takes the specified .class file, and changes its extension to .dex.
|
java.lang.String name()
long getSize()
throws java.io.IOException
java.io.IOExceptionjava.lang.String getRelativePath()
@NonNull ClassFileInput getInput()
ClassFileInput that has produced this entrybyte[] readAllBytes()
throws java.io.IOException
java.io.IOException - failed to read the file.int readAllBytes(byte[] bytes)
throws java.io.IOException
bytes - the bytes to read the content of the file into.java.io.IOException - failed to read the file or the buffer was too small.@NonNull
static java.lang.String withDexExtension(@NonNull
java.lang.String classFilePath)