public class ArjArchiveInputStream extends ArchiveInputStream
| Constructor and Description |
|---|
ArjArchiveInputStream(InputStream
Constructs the ArjInputStream, taking ownership of the inputStream that is passed in, and using the CP437 character encoding.
|
ArjArchiveInputStream(InputStream
Constructs the ArjInputStream, taking ownership of the inputStream that is passed in.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canReadEntryData(ArchiveEntry
Whether this stream is able to read the given entry.
|
void |
close()
|
String |
getArchiveComment()
Gets the archive's comment.
|
String |
getArchiveName()
Gets the archive's recorded name.
|
ArjArchiveEntry |
getNextEntry()
Returns the next Archive Entry in this Stream.
|
static boolean |
matches(byte[] signature, int length)
Checks if the signature matches what is expected for an arj file.
|
int |
read(byte[] b, int off, int len)
|
count, count, getBytesRead, getCount, pushedBackBytes, readavailable, mark, markSupported, read, reset, skippublic ArjArchiveInputStream(InputStreaminputStream, String charsetName) throws ArchiveException
inputStream - the underlying stream, whose ownership is taken
charsetName - the charset used for file names and comments in the archive
ArchiveException -
public ArjArchiveInputStream(InputStreaminputStream) throws ArchiveException
inputStream - the underlying stream, whose ownership is taken
ArchiveException -
public void close()
throws IOException
close in interface
Closeable
close in interface
AutoCloseable
close in class
InputStream
IOException
public static boolean matches(byte[] signature,
int length)
signature - the bytes to check
length - the number of bytes to check
public StringgetArchiveName()
public StringgetArchiveComment()
public ArjArchiveEntrygetNextEntry() throws IOException
ArchiveInputStream
getNextEntry in class
ArchiveInputStream
null if there are no more entries
IOException - if the next entry could not be read
public boolean canReadEntryData(ArchiveEntryae)
ArchiveInputStream
Some archive formats support variants or details that are not supported (yet).
canReadEntryData in class
ArchiveInputStream
ae - the entry to test
public int read(byte[] b,
int off,
int len)
throws IOException
read in class
InputStream
IOException