public static class JarClassFileInput.NoCacheClassJarEntry extends java.lang.Object implements ClassFileEntry
| Constructor and Description |
|---|
NoCacheClassJarEntry(com.android.apkzlib.zip.StoredEntry storedEntry) |
| 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[]
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithDexExtensionpublic NoCacheClassJarEntry(@NonNull
com.android.apkzlib.zip.StoredEntry storedEntry)
public java.lang.String name()
ClassFileEntryname in interface ClassFileEntrypublic long getSize()
ClassFileEntrygetSize in interface ClassFileEntrypublic java.nio.file.Path getRelativePath()
ClassFileEntrygetRelativePath in interface ClassFileEntrypublic byte[] readAllBytes()
throws java.io.IOException
ClassFileEntryreadAllBytes in interface ClassFileEntryjava.io.IOException - failed to read the file.public int readAllBytes(byte[] bytes)
throws java.io.IOException
ClassFileEntryreadAllBytes in interface ClassFileEntrybytes - the bytes to read the content of the file into.java.io.IOException - failed to read the file or the buffer was too small.