public final class BytestreamModule extends ModuleBase
| Modifier and Type | Field and Description |
|---|---|
protected ChecksumInputStream |
_cstream
PRIVATE INSTANCE FIELDS.
|
protected java.io.DataInputStream |
_dstream |
_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 |
|---|
BytestreamModule()
Creates a BytestreamModule.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkSignatures(java.io.File file,
java.io.InputStream stream,
RepInfo info)
Check signature.
|
int |
parse(java.io.InputStream stream,
RepInfo info,
int parseIndex)
Parse the content of a stream digital object and store the
results in RepInfo.
|
addIntegerProperty, addIntegerProperty, applyDefaultParams, calcRAChecksum, checkSignatures, 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, parse, 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, resetParams, setApp, setBase, setChecksums, setCRC32, setDefaultParams, setMD5, setNByte, setSHA1, setValidityNote, setVerbosity, show, skipBytes, skipBytes, vectorToPropArrayprotected ChecksumInputStream _cstream
protected java.io.DataInputStream _dstream
public final int parse(java.io.InputStream stream,
RepInfo info,
int parseIndex)
throws java.io.IOException
parse in interface Moduleparse in class ModuleBasestream - An InputStream, positioned at its beginning,
which is generated from the object to be parsed.
If multiple calls to parse are made
on the basis of a nonzero value being returned,
a new InputStream must be provided each time.info - A fresh (on the first call) RepInfo object
which will be modified
to reflect the results of the parsing
If multiple calls to parse are made
on the basis of a nonzero value being returned,
the same RepInfo object should be passed with each
call.parseIndex - Must be 0 in first call to parse. If
parse returns a nonzero value, it must be
called again with parseIndex
equal to that return value.java.io.IOExceptionpublic void checkSignatures(java.io.File file,
java.io.InputStream stream,
RepInfo info)
throws java.io.IOException
checkSignatures in interface ModulecheckSignatures in class ModuleBasefile - A File object for the object being parsedstream - An InputStream, positioned at its beginning,
which is generated from the object to be parsedinfo - A fresh RepInfo object which will be modified
to reflect the results of the testjava.io.IOException