public class GzipModule extends ModuleBase
This is a non-recursive validation. It only validates the GZIP file format, not the actual content within the WARC records.
_app, _bigEndian, _checksumFinished, _ckSummer, _countStream, _coverage, _crc32, _cstream, _date, _defaultParams, _dstream, _features, _format, _init, _isRandomAccess, _je, _logger, _md5, _mimeType, _name, _nByte, _note, _param, _release, _repInfoNote, _rights, _sha1, _sha256, _signature, _specification, _validityNote, _vendor, _verbosity, _wellFormedNoteMAXIMUM_VERBOSITY, MINIMUM_VERBOSITY| Constructor and Description |
|---|
GzipModule()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkSignatures(File file,
InputStream stream,
RepInfo info) |
void |
checkSignatures(File file,
RandomAccessFile raf,
RepInfo info) |
int |
parse(InputStream stream,
RepInfo info,
int parseIndex) |
void |
parse(RandomAccessFile file,
RepInfo info) |
protected void |
parseRecords(org.jwat.gzip.GzipReader reader)
Parses GZIP entries.
|
protected void |
processEntry(org.jwat.gzip.GzipEntry entry)
Processes a GZIP entry.
|
void |
resetParams()
Resets parameter settings.
|
addIntegerProperty, addIntegerProperty, applyDefaultParams, calcRAChecksum, checksumIfRafNotCopied, getApp, getBase, getBufferedDataStream, getCoverage, getCRC32, getDate, getDefaultParams, getFeatures, getFormat, getMimeType, getName, getNByte, getNote, getRelease, getRepInfoNote, getRights, getSignature, getSpecification, getValidityNote, getVendor, getWellFormedNote, hasFeature, init, initFeatures, initInfo, initParse, isBigEndian, isParamInDefaults, isRandomAccess, param, readByteBuf, readDouble, readDouble, readDouble, readFloat, readFloat, readSignedByte, readSignedByte, readSignedByte, readSignedInt, readSignedInt, readSignedInt, readSignedLong, readSignedRational, readSignedRational, readSignedShort, readSignedShort, readSignedShort, readUnsignedByte, readUnsignedByte, readUnsignedByte, readUnsignedInt, readUnsignedInt, readUnsignedInt, readUnsignedRational, readUnsignedRational, readUnsignedRational, readUnsignedShort, readUnsignedShort, readUnsignedShort, setApp, setBase, setChecksums, setCRC32, setDefaultParams, setMD5, setNByte, setSHA1, setSHA256, setupDataStream, setValidityNote, setVerbosity, show, skipBytes, skipBytes, skipDstreamToEnd, vectorToPropArraypublic void resetParams()
resetParams in interface ModuleresetParams in class ModuleBasepublic void checkSignatures(File file, InputStream stream, RepInfo info) throws IOException
checkSignatures in interface ModulecheckSignatures in class ModuleBaseIOExceptionpublic void checkSignatures(File file, RandomAccessFile raf, RepInfo info) throws IOException
checkSignatures in interface ModulecheckSignatures in class ModuleBaseIOExceptionpublic void parse(RandomAccessFile file, RepInfo info)
parse in interface Moduleparse in class ModuleBasepublic int parse(InputStream stream, RepInfo info, int parseIndex)
parse in interface Moduleparse in class ModuleBaseprotected void parseRecords(org.jwat.gzip.GzipReader reader)
throws EOFException,
IOException,
JhoveException
reader - GZIP reader used to parse recordsEOFException - if EOF occurs prematurelyIOException - if an IO error occurs while processingJhoveException - if a serious problem needs to be reportedprotected void processEntry(org.jwat.gzip.GzipEntry entry)
throws EOFException,
IOException
entry - GZIP entry from GZIP readerEOFException - if EOF occurs prematurelyIOException - if an IO error occurs while processingCopyright © 2008–2021 The Open Preservation Foundation. All rights reserved.