Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.commons.compress.archivers.jar
Class JarArchiveInputStream

    java.lang.Object
      java.io.InputStream
          org.apache.commons.compress.archivers.ArchiveInputStream
              org.apache.commons.compress.archivers.zip.ZipArchiveInputStream
                  org.apache.commons.compress.archivers.jar.JarArchiveInputStream

All Implemented Interfaces:
  Closeable

    public class JarArchiveInputStream

extends ZipArchiveInputStream

Implements an input stream that can read entries from jar files.

Constructor Summary
`JarArchiveInputStream(InputStream inputStream)`

Method Summary
`ArchiveEntry` | `getNextEntry()` Returns the next Archive Entry in this Stream.
`JarArchiveEntry` | `getNextJarEntry()`
`static boolean` | `matches(byte[] signature, int length)`

Methods inherited from class org.apache.commons.compress.archivers.zip.ZipArchiveInputStream
`close, getNextZipEntry, read, skip`

Methods inherited from class org.apache.commons.compress.archivers.ArchiveInputStream
`count, getCount, read`

Methods inherited from class java.io.InputStream
`available, mark, markSupported, read, reset`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### JarArchiveInputStream

    public JarArchiveInputStream(InputStream inputStream)

Method Detail

### getNextJarEntry

    public JarArchiveEntry getNextJarEntry()
                                    throws IOException

  Throws:
    `IOException`

### getNextEntry

    public ArchiveEntry getNextEntry()
                              throws IOException

  Description copied from class: `ArchiveInputStream`
  Returns the next Archive Entry in this Stream.

  Overrides:
    `getNextEntry` in class `ZipArchiveInputStream`
  Returns:
    the next entry, or `null` if there are no more entries
  Throws:
    `IOException` - if the next entry could not be read

### matches

    public static boolean matches(byte[] signature,
                                  int length)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.