Class GzipEntryData

java.lang.Object
edu.harvard.hul.ois.jhove.module.gzip.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
    Ascii bit set in header.
    protected String
    Optional comment from header.
    protected int
    CRC16 computed as verification to optional value found in header.
    protected int
    CRC32 computed as verification to value found in trailing header.
    protected long
    ISIZE computed as verification to value found in trailing header.
    protected long
    Compressed size of entry data.
    protected Date
    Date read from header.
    protected CompressionType
    Compression type read from extra flags in header.
    protected String
    Optional filename from header.
    protected boolean
    Boolean indicating whether header is non compliant.
    Compression methods read from header.
    protected long
    Offset of entry in input stream.
    protected OperatingSystem
    Operating System from header converted to a field.
    protected Integer
    Optional CRC16 read from header.
    protected int
    CRC32 read from trailing header.
    protected long
    ISIZE read from trailing header.
    protected long
    Uncompressed size of entry data.
  • Constructor Summary

    Constructors
    Constructor
    Description
    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.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • isNonCompliant

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

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

      protected CompressionMethod method
      Compression methods read from header.
    • 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 Details

    • 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