This class implements an input stream filter for reading files in the ZIP file format. Includes support for both compressed and uncompressed entries.

See net.lingala.zip4j.io.inputstream for full documentation

Hierarchy

Constructors

Methods

  • Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking, which may be 0, or 0 when end of stream is detected.

    Returns number

  • Closes this input stream and releases any system resources associated with the stream.

    Returns void

  • Reads the next ZIP file entry and positions the stream at the beginning of the entry data.

    Parameters

    Returns LocalFileHeader

  • Marks the current position in this input stream.

    Parameters

    • readlimit: number

    Returns void

  • Tests if this input stream supports the mark and reset methods.

    Returns boolean

  • Reads the next byte of data from the input stream.

    Returns number

  • Reads some number of bytes from the input stream and stores them into the buffer array b.

    Parameters

    Returns number

  • Reads up to len bytes of data from the input stream into an array of bytes.

    Parameters

    Returns number

  • Reads the requested number of bytes from the input stream into the given byte array.

    Parameters

    Returns number

  • Reads up to a specified number of bytes from the input stream.

    Parameters

    • len: number

    Returns ByteArray

  • Repositions this stream to the position at the time the mark method was last called on this input stream.

    Returns void

  • Skips over and discards n bytes of data from this input stream.

    Parameters

    • n: number

    Returns number

  • Reads all bytes from this input stream and writes the bytes to the given output stream in the order that they are read.

    Parameters

    Returns number

Generated using TypeDoc