| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private InputStream | |
| private LocalFileHeader | |
| private final DataInputStream | |
| private static final String | |
| private final MainHeader |
| Access | Constructor and Description |
|---|---|
| public | ArjArchiveInputStream(final InputStream
the underlying stream, whose ownership is taken inputStream)Constructs the ArjInputStream, taking ownership of the inputStream that is passed in, and using the CP437 character encoding. |
| public | ArjArchiveInputStream(final InputStream
the underlying stream, whose ownership is taken inputStream, final String the charset used for file names and comments in the archive. May be charsetName)null to use the platform default.Constructs the ArjInputStream, taking ownership of the inputStream that is passed in. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canReadEntryData(final ArchiveEntry
the entry to test ae)Overrides org. |
| public void | close()
Overrides java. Implements java. |
| public String | |
| public String | |
| public ArjArchiveEntry | getNextEntry()
Implements abstract org. |
| public static boolean | Returns: true, if this stream is an arj archive stream, false otherwisethe bytes to check signature, final int the number of bytes to check length)Checks if the signature matches what is expected for an arj file. |
| public int | read(final byte[]
the buffer into which the data is read. b, final int the start offset in array off, final int b
at which the data is written.the maximum number of bytes to read. len)Overrides java. len bytes of data from this input stream
into an array of bytes.
|
| private int | |
| private int | |
| private int | |
| private void | readExtraData(final int firstHeaderSize, final DataInputStream firstHeader, final LocalFileHeader localFileHeader)
|
| private byte[] | |
| private LocalFileHeader | |
| private MainHeader | |
| private byte[] | |
| private String |
| ARJ_MAGIC_1 | back to summary |
|---|---|
| private static final int ARJ_MAGIC_1 | |
| ARJ_MAGIC_2 | back to summary |
|---|---|
| private static final int ARJ_MAGIC_2 | |
| currentInputStream | back to summary |
|---|---|
| private InputStream currentInputStream | |
| currentLocalFileHeader | back to summary |
|---|---|
| private LocalFileHeader currentLocalFileHeader | |
| dis | back to summary |
|---|---|
| private final DataInputStream dis | |
| ENCODING_NAME | back to summary |
|---|---|
| private static final String ENCODING_NAME | |
| mainHeader | back to summary |
|---|---|
| private final MainHeader mainHeader | |
| ArjArchiveInputStream | back to summary |
|---|---|
| public ArjArchiveInputStream(final InputStream inputStream) throws ArchiveException Constructs the ArjInputStream, taking ownership of the inputStream that is passed in, and using the CP437 character encoding.
| |
| ArjArchiveInputStream | back to summary |
|---|---|
| public ArjArchiveInputStream(final InputStream inputStream, final String charsetName) throws ArchiveException Constructs the ArjInputStream, taking ownership of the inputStream that is passed in.
| |
| canReadEntryData | back to summary |
|---|---|
| public boolean canReadEntryData(final ArchiveEntry ae) Overrides org. Doc from org. Whether this stream is able to read the given entry. Some archive formats support variants or details that are not supported (yet).
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this input stream and releases any system resources associated with the stream.
| |
| getArchiveComment | back to summary |
|---|---|
| public String getArchiveComment() Gets the archive's comment.
| |
| getArchiveName | back to summary |
|---|---|
| public String getArchiveName() Gets the archive's recorded name.
| |
| getNextEntry | back to summary |
|---|---|
| public ArjArchiveEntry getNextEntry() throws IOException Implements abstract org. Doc from org. Gets the next Archive Entry in this Stream.
| |
| matches | back to summary |
|---|---|
| public static boolean matches(final byte[] signature, final int length) Checks if the signature matches what is expected for an arj file.
| |
| read | back to summary |
|---|---|
| public int read(final byte[] b, final int off, final int len) throws IOException Overrides java. Doc from java. Reads up to
| |
| read16 | back to summary |
|---|---|
| private int read16(final DataInputStream dataIn) throws IOException | |
| read32 | back to summary |
|---|---|
| private int read32(final DataInputStream dataIn) throws IOException | |
| read8 | back to summary |
|---|---|
| private int read8(final DataInputStream dataIn) throws IOException | |
| readExtraData | back to summary |
|---|---|
| private void readExtraData(final int firstHeaderSize, final DataInputStream firstHeader, final LocalFileHeader localFileHeader) throws IOException | |
| readHeader | back to summary |
|---|---|
| private byte[] readHeader() throws IOException | |
| readLocalFileHeader | back to summary |
|---|---|
| private LocalFileHeader readLocalFileHeader() throws IOException | |
| readMainHeader | back to summary |
|---|---|
| private MainHeader readMainHeader() throws IOException | |
| readRange | back to summary |
|---|---|
| private byte[] readRange(final InputStream in, final int len) throws IOException | |
| readString | back to summary |
|---|---|
| private String readString(final DataInputStream dataIn) throws IOException | |