ArchiveInputStream

Archive input streams MUST override the read - or read - method so that reading from the stream generates EOF for the end of data in each entry as well as at the end of the file proper.

The getNextEntry method is used to reset the input stream ready for reading the data from the next entry.

The input stream classes must also implement a method with the signature:

public static boolean matches(byte[] signature, int length)
which is used by the ArchiveStreamFactory to autodetect the archive type from the first few bytes of a stream.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open val bytesRead: Long
holds the number of bytes read in this stream

Functions

Link copied to clipboard
open fun available(): Int
Link copied to clipboard
open fun canReadEntryData(archiveEntry: ArchiveEntry): Boolean
Whether this stream is able to read the given entry.
Link copied to clipboard
open fun close()
Link copied to clipboard
abstract fun getNextEntry(): ArchiveEntry
Returns the next Archive Entry in this Stream.
Link copied to clipboard
open fun mark(readlimit: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun read(): Int
Reads a byte of data.
Link copied to clipboard
open fun readAllBytes(): Array<Byte>
Link copied to clipboard
open fun readNBytes(len: Int): Array<Byte>
open fun readNBytes(b: Array<Byte>, off: Int, len: Int): Int
Link copied to clipboard
open fun reset()
Link copied to clipboard
open fun skip(n: Long): Long
Link copied to clipboard
open fun skipNBytes(n: Long)
Link copied to clipboard
open fun transferTo(out: OutputStream): Long