public class ArjArchiveInputStream extends ArchiveInputStream
| Constructor and Description |
|---|
ArjArchiveInputStream(InputStream inputStream)
Constructs the ArjInputStream, taking ownership of the inputStream that is passed in,
and using the CP437 character encoding.
|
ArjArchiveInputStream(InputStream inputStream,
String charsetName)
Constructs the ArjInputStream, taking ownership of the inputStream that is passed in.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canReadEntryData(ArchiveEntry ae)
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(InputStream inputStream, String charsetName) throws ArchiveException
inputStream - the underlying stream, whose ownership is takencharsetName - the charset used for file names and comments
in the archive. May be null to use the platform default.ArchiveException - if an exception occurs while readingpublic ArjArchiveInputStream(InputStream inputStream) throws ArchiveException
inputStream - the underlying stream, whose ownership is takenArchiveException - if an exception occurs while readingpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic static boolean matches(byte[] signature, int length)
signature - the bytes to checklength - the number of bytes to checkpublic String getArchiveName()
public String getArchiveComment()
public ArjArchiveEntry getNextEntry() throws IOException
ArchiveInputStreamgetNextEntry in class ArchiveInputStreamnull if there are no more entriesIOException - if the next entry could not be readpublic boolean canReadEntryData(ArchiveEntry ae)
ArchiveInputStreamSome archive formats support variants or details that are not supported (yet).
canReadEntryData in class ArchiveInputStreamae - the entry to testpublic int read(byte[] b, int off, int len) throws IOException
read in class InputStreamIOExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.