Class GzipEntryData


  • public class GzipEntryData
    extends Object
    This class is a wrapper for the information available in a GZip entry. Since the GZip reader is not persistent its data must be moved to a simpler data class which can be persisted instead.
    Author:
    nicl
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean asciiFlag
      Ascii bit set in header.
      protected String comment
      Optional comment from header.
      protected int computedCrc16
      CRC16 computed as verification to optional value found in header.
      protected int computedCrc32
      CRC32 computed as verification to value found in trailing header.
      protected long computedISize
      ISIZE computed as verification to value found in trailing header.
      protected long csize
      Compressed size of entry data.
      protected Date date
      Date read from header.
      protected CompressionType extraFlags
      Compression type read from extra flags in header.
      protected String fileName
      Optional filename from header.
      protected boolean isNonCompliant
      Boolean indicating whether header is non compliant.
      protected CompressionMethod method
      Compression methods read from header.
      protected long offset
      Offset of entry in input stream.
      protected OperatingSystem os
      Operating System from header converted to a field.
      protected Integer readCrc16
      Optional CRC16 read from header.
      protected int readCrc32
      CRC32 read from trailing header.
      protected long readISize
      ISIZE read from trailing header.
      protected long size
      Uncompressed size of entry data.
    • Constructor Summary

      Constructors 
      Constructor Description
      GzipEntryData()
      Constructor required by the persistence layer.
      GzipEntryData​(org.jwat.gzip.GzipEntry entry)
      Given a GZip entry, transfer the data to this object so it can be persisted.
    • Field Detail

      • isNonCompliant

        protected boolean isNonCompliant
        Boolean indicating whether header is non compliant.
      • offset

        protected long offset
        Offset of entry in input stream.
      • extraFlags

        protected CompressionType extraFlags
        Compression type read from extra flags in header.
      • fileName

        protected String fileName
        Optional filename from header.
      • os

        protected OperatingSystem os
        Operating System from header converted to a field.
      • comment

        protected String comment
        Optional comment from header.
      • asciiFlag

        protected boolean asciiFlag
        Ascii bit set in header.
      • readCrc16

        protected Integer readCrc16
        Optional CRC16 read from header.
      • computedCrc16

        protected int computedCrc16
        CRC16 computed as verification to optional value found in header.
      • date

        protected Date date
        Date read from header.
      • size

        protected long size
        Uncompressed size of entry data.
      • csize

        protected long csize
        Compressed size of entry data.
      • readISize

        protected long readISize
        ISIZE read from trailing header.
      • computedISize

        protected long computedISize
        ISIZE computed as verification to value found in trailing header.
      • readCrc32

        protected int readCrc32
        CRC32 read from trailing header.
      • computedCrc32

        protected int computedCrc32
        CRC32 computed as verification to value found in trailing header.
    • Constructor Detail

      • GzipEntryData

        public GzipEntryData()
        Constructor required by the persistence layer.
      • GzipEntryData

        public GzipEntryData​(org.jwat.gzip.GzipEntry entry)
        Given a GZip entry, transfer the data to this object so it can be persisted.
        Parameters:
        entry - GZip entry data