public class JarArchiveInputStream extends ZipArchiveInputStream
PREAMBLE_GARBAGE_MAX_SIZE| Constructor and Description |
|---|
JarArchiveInputStream(java.io.InputStream inputStream)
Creates an instance from the input stream using the default encoding.
|
JarArchiveInputStream(java.io.InputStream inputStream,
java.lang.String encoding)
Creates an instance from the input stream using the specified encoding.
|
| Modifier and Type | Method and Description |
|---|---|
JarArchiveEntry |
getNextEntry()
Gets the next Archive Entry in this Stream.
|
JarArchiveEntry |
getNextJarEntry()
Deprecated.
Use
getNextEntry(). |
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, getCompressedCount, getNextZipEntry, getUncompressedCount, read, setExtraFieldSupport, skipgetBytesRead, getCharset, getCount, mark, markSupported, read, resetpublic JarArchiveInputStream(java.io.InputStream inputStream)
inputStream - the input stream to wrappublic JarArchiveInputStream(java.io.InputStream inputStream,
java.lang.String encoding)
inputStream - the input stream to wrapencoding - the encoding to usepublic static boolean matches(byte[] signature,
int length)
signature - the bytes to checklength - the number of bytes to checkpublic JarArchiveEntry getNextEntry() throws java.io.IOException
ArchiveInputStreamgetNextEntry in class ZipArchiveInputStreamnull if there are no more entriesjava.io.IOException - if the next entry could not be read@Deprecated public JarArchiveEntry getNextJarEntry() throws java.io.IOException
getNextEntry().java.io.IOException - if an I/O error occurs.Copyright © 2010 - 2024 Adobe. All Rights Reserved