public class GifModule extends ModuleBase
| Modifier and Type | Field and Description |
|---|---|
protected List |
_blocksList |
protected int |
_gceCounter |
protected boolean |
_globalColorTableFlag |
protected int |
_globalColorTableSize |
protected Property |
_metadata |
protected int |
_numGraphicBlocks |
protected byte[] |
_sig
PRIVATE INSTANCE FIELDS.
|
protected Property |
_xmpProp |
_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 |
|---|
GifModule()
Instantiate a GifModule object.
|
| Modifier and Type | Method and Description |
|---|---|
protected Property |
addByteProperty(String name,
int value,
String[] labels) |
void |
checkSignatures(File file,
InputStream stream,
RepInfo info)
Check if the digital object conforms to this Module's
internal signature information.
|
protected void |
initParse()
Initializes the state of the module for parsing.
|
int |
parse(InputStream stream,
RepInfo info,
int parseIndex)
Parse the content of a purported GIF stream digital object and store the
results in RepInfo.
|
protected boolean |
readAppExtension(RepInfo info) |
protected boolean |
readBlock(RepInfo info) |
protected boolean |
readCommentExtension(RepInfo info) |
protected boolean |
readExtBlock(RepInfo info) |
protected boolean |
readGraphicsCtlBlock(RepInfo info) |
protected boolean |
readImage(RepInfo info) |
protected boolean |
readLSD(RepInfo info) |
protected boolean |
readPlainTextExtension(RepInfo info) |
protected boolean |
readSig(RepInfo info) |
protected int |
readUnsignedShort(DataInputStream stream) |
protected int |
readXMP() |
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, 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, vectorToPropArrayprotected byte[] _sig
protected Property _xmpProp
protected boolean _globalColorTableFlag
protected int _globalColorTableSize
protected int _gceCounter
protected Property _metadata
protected List _blocksList
protected int _numGraphicBlocks
public void checkSignatures(File file, InputStream stream, RepInfo info)
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 testpublic int parse(InputStream stream, RepInfo info, int parseIndex) throws IOException
parse in interface Moduleparse in class ModuleBasestream - 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 parsingparseIndex - 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.IOExceptionprotected void initParse()
initParse in class ModuleBaseprotected boolean readSig(RepInfo info) throws IOException
IOExceptionprotected boolean readLSD(RepInfo info) throws IOException
IOExceptionprotected boolean readBlock(RepInfo info) throws IOException
IOExceptionprotected boolean readExtBlock(RepInfo info) throws IOException
IOExceptionprotected boolean readImage(RepInfo info) throws IOException
IOExceptionprotected boolean readAppExtension(RepInfo info) throws IOException
IOExceptionprotected boolean readCommentExtension(RepInfo info) throws IOException
IOExceptionprotected boolean readPlainTextExtension(RepInfo info) throws IOException
IOExceptionprotected boolean readGraphicsCtlBlock(RepInfo info) throws IOException
IOExceptionprotected int readXMP()
throws IOException
IOExceptionprotected int readUnsignedShort(DataInputStream stream) throws IOException
IOExceptionCopyright © 2008–2021 The Open Preservation Foundation. All rights reserved.