public class WarcModule extends ModuleBase
_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 |
|---|
WarcModule()
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.warc.WarcReader reader)
Parse WARC records.
|
protected void |
processRecord(org.jwat.warc.WarcRecord record)
Process a WARC record.
|
void |
resetParams()
Reset parameter settings.
|
protected void |
setReaderOptions(org.jwat.warc.WarcReader reader)
Set digest options for WARC reader.
|
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) 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 setReaderOptions(org.jwat.warc.WarcReader reader)
throws JhoveException
reader - WARC reader instanceJhoveExceptionprotected void parseRecords(org.jwat.warc.WarcReader reader)
throws IOException,
JhoveException
reader - WARC reader used to parse recordsIOException - if an IO error occurs while processingJhoveException - if a serious problem needs to be reportedprotected void processRecord(org.jwat.warc.WarcRecord record)
throws IOException
record - WARC record from WARC readerIOException - if an IO error occurs while processingCopyright © 2008–2021 The Open Preservation Foundation. All rights reserved.