public class JarArchiveInputStream extends ZipArchiveInputStream
| Constructor and Description |
|---|
JarArchiveInputStream(InputStream
|
| Modifier and Type | Method and Description |
|---|---|
ArchiveEntry |
getNextEntry()
Returns the next Archive Entry in this Stream.
|
JarArchiveEntry |
getNextJarEntry()
|
static boolean |
matches(byte[] signature, int length)
Checks if the signature matches what is expected for a jar file (in this case it is the same as for a zip file).
|
canReadEntryData, close, getNextZipEntry, read, skipcount, count, getBytesRead, getCount, pushedBackBytes, readavailable, mark, markSupported, read, resetpublic JarArchiveInputStream(InputStreaminputStream)
public JarArchiveEntrygetNextJarEntry() throws IOException
IOException
public ArchiveEntrygetNextEntry() throws IOException
ArchiveInputStream
getNextEntry in class
ZipArchiveInputStream
null if there are no more entries
IOException - if the next entry could not be read
public static boolean matches(byte[] signature,
int length)
signature - the bytes to check
length - the number of bytes to check