public class ArArchiveInputStream extends ArchiveInputStream
| Constructor and Description |
|---|
ArArchiveInputStream(InputStream
Constructs an Ar input stream with the referenced stream
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
|
ArArchiveEntry |
getNextArEntry()
Returns the next AR entry in this stream.
|
ArchiveEntry |
getNextEntry()
Returns the next Archive Entry in this Stream.
|
static boolean |
matches(byte[] signature, int length)
Checks if the signature matches ASCII "!<arch>" followed by a single LF control character
|
int |
read(byte[] b, int off, int len)
|
canReadEntryData, count, count, getBytesRead, getCount, pushedBackBytes, readavailable, mark, markSupported, read, reset, skippublic ArArchiveInputStream(InputStreampInput)
pInput - the ar input stream
public ArArchiveEntrygetNextArEntry() throws IOException
IOException - if the entry could not be read
public ArchiveEntrygetNextEntry() throws IOException
ArchiveInputStream
getNextEntry in class
ArchiveInputStream
null if there are no more entries
IOException - if the next entry could not be read
public void close()
throws IOException
close in interface
Closeable
close in interface
AutoCloseable
close in class
InputStream
IOException
public int read(byte[] b,
int off,
int len)
throws IOException
read in class
InputStream
IOException
public static boolean matches(byte[] signature,
int length)
signature - the bytes to check
length - the number of bytes to check