public class JarArchiveInputStream extends ZipArchiveInputStream
| Constructor and Description | 
|---|
| JarArchiveInputStream(InputStream inputStream)Creates an instance from the input stream using the default encoding. | 
| JarArchiveInputStream(InputStream inputStream,
                     String encoding)Creates an instance from the input stream using the specified encoding. | 
| 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, getCompressedCount, getNextZipEntry, getUncompressedCount, read, skipcount, count, getBytesRead, getCount, pushedBackBytes, readavailable, mark, markSupported, read, resetpublic JarArchiveInputStream(InputStream inputStream)
inputStream - the input stream to wrappublic JarArchiveInputStream(InputStream inputStream, String encoding)
inputStream - the input stream to wrapencoding - the encoding to usepublic JarArchiveEntry getNextJarEntry() throws IOException
IOExceptionpublic ArchiveEntry getNextEntry() throws IOException
ArchiveInputStreamgetNextEntry in class ZipArchiveInputStreamnull if there are no more entriesIOException - if the next entry could not be readpublic static boolean matches(byte[] signature, int length)
signature - the bytes to checklength - the number of bytes to checkCopyright © 2018 The Apache Software Foundation. All rights reserved.