public class AsciiModule extends ModuleBase
| Modifier and Type | Field and Description |
|---|---|
protected TextMDMetadata |
_textMD |
protected boolean |
_withTextMD |
static int |
MAX_CHAR |
static int |
MAX_PRINTABLE |
static int |
MIN_PRINTABLE |
protected Set<ControlChar> |
usedCtrlChars
PRIVATE INSTANCE FIELDS.
|
protected Set<LineEnding> |
usedLineEndings |
_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 |
|---|
AsciiModule()
Creates an AsciiModule.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkSignatures(File file,
InputStream stream,
RepInfo info)
Check if the digital object conforms to this Module's internal signature
information.
|
int |
parse(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, 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, 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, setSHA256, setupDataStream, setValidityNote, setVerbosity, show, skipBytes, skipBytes, skipDstreamToEnd, vectorToPropArraypublic static final int MAX_CHAR
public static final int MIN_PRINTABLE
public static final int MAX_PRINTABLE
protected Set<ControlChar> usedCtrlChars
protected Set<LineEnding> usedLineEndings
protected boolean _withTextMD
protected TextMDMetadata _textMD
public final int parse(InputStream stream, RepInfo info, int parseIndex) throws IOException
parse in interface Moduleparse in class ModuleBaseIOExceptionpublic void checkSignatures(File file, InputStream stream, RepInfo info) throws 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 testIOExceptionCopyright © 2008–2021 The Open Preservation Foundation. All rights reserved.