java.lang.Object
i2p.susi.util.FileBuffer
i2p.susi.util.GzipFileBuffer
All Implemented Interfaces:
Buffer

public class GzipFileBufferextends FileBuffer
Gzip-compressed file Buffer implementation.
  • Field Details

    • _actualLength

      private long _actualLength
      Length of the decoded data, in bytes.
    • _cis

      private CountingInputStream _cis
      Stream counting the bytes read.
    • _cos

      private CountingOutputStream _cos
      Stream counting the bytes written.
  • Constructor Details

    • GzipFileBuffer

      public GzipFileBuffer(File file)
      Create a GzipFileBuffer for the entire file.
      Parameters:
      file - the gzip-compressed file
    • GzipFileBuffer

      public GzipFileBuffer(File file, int offset, int sublen)
      Create a GzipFileBuffer for a portion of the uncompressed data.
      Parameters:
      file - the gzip-compressed file
      offset - the byte offset to start reading from (uncompressed)
      sublen - the number of bytes to read (uncompressed), or 0 for all
  • Method Details