org.apache.commons.compress.archivers.ar
Class ArArchiveInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.apache.commons.compress.archivers.ArchiveInputStream
          extended by org.apache.commons.compress.archivers.ar.ArArchiveInputStream
All Implemented Interfaces:
java.io.Closeable

public class ArArchiveInputStream
extends ArchiveInputStream


Constructor Summary
ArArchiveInputStream(java.io.InputStream pInput)
           
 
Method Summary
 ArchiveEntry getNextEntry()
          Returns the next Archive Entry in this Stream.
static boolean matches(byte[] signature)
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArArchiveInputStream

public ArArchiveInputStream(java.io.InputStream pInput)
Method Detail

getNextEntry

public ArchiveEntry getNextEntry()
                          throws java.io.IOException
Description copied from class: ArchiveInputStream
Returns the next Archive Entry in this Stream.

Specified by:
getNextEntry in class ArchiveInputStream
Returns:
the next entry
Throws:
java.io.IOException - if the next entry could not be read

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

matches

public static boolean matches(byte[] signature)