Class GzipEntryData
java.lang.Object
edu.harvard.hul.ois.jhove.module.gzip.GzipEntryData
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
FieldsModifier and TypeFieldDescriptionprotected booleanAscii bit set in header.protected StringOptional comment from header.protected intCRC16 computed as verification to optional value found in header.protected intCRC32 computed as verification to value found in trailing header.protected longISIZE computed as verification to value found in trailing header.protected longCompressed size of entry data.protected DateDate read from header.protected CompressionTypeCompression type read from extra flags in header.protected StringOptional filename from header.protected booleanBoolean indicating whether header is non compliant.protected CompressionMethodCompression methods read from header.protected longOffset of entry in input stream.protected OperatingSystemOperating System from header converted to a field.protected IntegerOptional CRC16 read from header.protected intCRC32 read from trailing header.protected longISIZE read from trailing header.protected longUncompressed size of entry data. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor 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
-
Field Details
-
isNonCompliant
protected boolean isNonCompliantBoolean indicating whether header is non compliant. -
offset
protected long offsetOffset of entry in input stream. -
method
Compression methods read from header. -
extraFlags
Compression type read from extra flags in header. -
fileName
Optional filename from header. -
os
Operating System from header converted to a field. -
comment
Optional comment from header. -
asciiFlag
protected boolean asciiFlagAscii bit set in header. -
readCrc16
Optional CRC16 read from header. -
computedCrc16
protected int computedCrc16CRC16 computed as verification to optional value found in header. -
date
Date read from header. -
size
protected long sizeUncompressed size of entry data. -
csize
protected long csizeCompressed size of entry data. -
readISize
protected long readISizeISIZE read from trailing header. -
computedISize
protected long computedISizeISIZE computed as verification to value found in trailing header. -
readCrc32
protected int readCrc32CRC32 read from trailing header. -
computedCrc32
protected int computedCrc32CRC32 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
-