public interface ClassFileEntry
| Modifier and Type | Method and Description |
|---|---|
java.nio.file.Path |
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.nio.file.Path |
withDexExtension(java.nio.file.Path 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.nio.file.Path getRelativePath()
byte[] 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.nio.file.Path withDexExtension(@NonNull
java.nio.file.Path classFilePath)