public class GzipModule extends ModuleBase
_app, _bigEndian, _checksumFinished, _countStream, _coverage, _crc32, _date, _defaultParams, _features, _format, _init, _isRandomAccess, _je, _logger, _md5, _mimeType, _name, _nByte, _note, _param, _release, _repInfoNote, _rights, _sha1, _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, getApp, getBase, getBufferedDataStream, getCoverage, getCRC32, getDate, getDefaultParams, getFeatures, getFormat, getMimeType, getName, getNByte, getNote, getRelease, getRepInfoNote, getRights, getSignature, getSpecification, getValidityNote, getVendor, getWellFormedNote, hasFeature, init, initFeatures, initParse, isBigEndian, 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, setValidityNote, setVerbosity, show, skipBytes, skipBytes, vectorToPropArraypublic void resetParams()
throws Exception
resetParams in interface ModuleresetParams in class ModuleBaseExceptionpublic 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) throws IOException
parse in interface Moduleparse in class ModuleBaseIOExceptionpublic int parse(InputStream stream, RepInfo info, int parseIndex) throws IOException
parse in interface Moduleparse in class ModuleBaseIOExceptionprotected 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,
JhoveException
entry - GZIP entry from GZIP readerEOFException - if EOF occurs prematurelyIOException - if an IO error occurs while processingJhoveException - if a serious problem needs to be reportedCopyright © 2008–2018 The Open Preservation Foundation. All rights reserved.