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 booleanasciiFlagAscii bit set in header.protected StringcommentOptional comment from header.protected intcomputedCrc16CRC16 computed as verification to optional value found in header.protected intcomputedCrc32CRC32 computed as verification to value found in trailing header.protected longcomputedISizeISIZE computed as verification to value found in trailing header.protected longcsizeCompressed size of entry data.protected DatedateDate read from header.protected CompressionTypeextraFlagsCompression type read from extra flags in header.protected StringfileNameOptional filename from header.protected booleanisNonCompliantBoolean indicating whether header is non compliant.protected CompressionMethodmethodCompression methods read from header.protected longoffsetOffset of entry in input stream.protected OperatingSystemosOperating System from header converted to a field.protected IntegerreadCrc16Optional CRC16 read from header.protected intreadCrc32CRC32 read from trailing header.protected longreadISizeISIZE read from trailing header.protected longsizeUncompressed 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.
-
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.
-
-