public class ArArchiveInputStream extends ArchiveInputStream
Constructor and Description |
---|
ArArchiveInputStream(java.io.InputStream pInput)
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, getBytesRead, getCount, read
public ArArchiveInputStream(java.io.InputStream pInput)
pInput
- the ar input streampublic ArArchiveEntry getNextArEntry() throws java.io.IOException
java.io.IOException
- if the entry could not be readpublic ArchiveEntry getNextEntry() throws java.io.IOException
ArchiveInputStream
getNextEntry
in class ArchiveInputStream
null
if there are no more entriesjava.io.IOException
- if the next entry could not be readpublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public static boolean matches(byte[] signature, int length)
signature
- the bytes to checklength
- the number of bytes to check"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"