public class TiffModule extends ModuleBase
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
_byteOffsetIsValid |
protected boolean |
_dngRawFlag
Special flag for DNG profiles; is raw IFD profile satisfied
|
protected boolean |
_dngThumbnailFlag
Special flag for DNG profiles; is "thumbnail" (IFD 0) profile satisfied
|
protected boolean |
_exifFirstFlag
Special flag for Exif profiles: Is main IFD profile satisfied
|
protected boolean |
_exifThumbnailFlag
Special flag for Exif profiles: Is thumbnail IFD profile satisfied
|
protected Logger |
_logger
Logger for this class.
|
protected List<TiffProfile> |
_profile
List of profile checkers.
|
protected RandomAccessFile |
_raf
Open TIFF file.
|
protected int |
_version
TIFF version.
|
static String[] |
defaultConfigParams
Value to write as module params to the default config file.
|
_app, _bigEndian, _checksumFinished, _ckSummer, _countStream, _coverage, _crc32, _cstream, _date, _defaultParams, _dstream, _features, _format, _init, _isRandomAccess, _je, _md5, _mimeType, _name, _nByte, _note, _param, _release, _repInfoNote, _rights, _sha1, _sha256, _signature, _specification, _validityNote, _vendor, _verbosity, _wellFormedNoteMAXIMUM_VERBOSITY, MINIMUM_VERBOSITY| Constructor and Description |
|---|
TiffModule()
Instantiate a
TiffModule object. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildProfileList()
Build list of profiles to check.
|
protected void |
checkValidity(List<IFD> ifds,
RepInfo info)
Go through all the IFD's, calling checkIFDValidity on each one that is a
standard IFD.
|
protected void |
checkValidity(TiffIFD ifd,
RepInfo info)
Check the validity of the IFD.
|
List<IFD> |
exifParse(RandomAccessFile raf,
RepInfo info)
Special-purpose, limited parser for embedded Exif files.
|
protected void |
initParse()
Initializes the state of the module for parsing.
|
void |
parse(RandomAccessFile raf,
RepInfo info)
Parse the TIFF for well-formedness and validity, accumulating
representation information.
|
protected IFD |
parseIFDChain(long next,
RepInfo info,
int type,
List<IFD> list,
boolean suppressErrors) |
protected List<IFD> |
parseIFDs(long offset,
RepInfo info)
Parse all IFDs in the file, accumulating representation information.
|
protected List<IFD> |
parseIFDs(long offset,
RepInfo info,
boolean suppressErrors,
int ifdType)
Parse all IFDs in the file, accumulating representation information.
|
protected void |
reportInvalid(JhoveMessage message,
RepInfo info)
Report an instance of invalidity.
|
protected int |
selectMimeTypeIndex()
Return the index into _mimeType which should be used for the MIME type
property.
|
void |
setByteOffsetValid(boolean v)
Allow odd offsets in values
|
addIntegerProperty, addIntegerProperty, applyDefaultParams, calcRAChecksum, checkSignatures, 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, vectorToPropArraypublic static final String[] defaultConfigParams
protected Logger _logger
protected List<TiffProfile> _profile
protected boolean _exifFirstFlag
protected boolean _exifThumbnailFlag
protected boolean _dngThumbnailFlag
protected boolean _dngRawFlag
protected RandomAccessFile _raf
protected int _version
protected boolean _byteOffsetIsValid
public final void parse(RandomAccessFile raf, RepInfo info) throws IOException
parse in interface Moduleparse in class ModuleBaseraf - Open TIFF fileinfo - Representation informatinoIOExceptionpublic void setByteOffsetValid(boolean v)
public final List<IFD> exifParse(RandomAccessFile raf, RepInfo info) throws IOException
raf - Open TIFF fileinfo - Representation informationIOExceptionprotected void buildProfileList()
protected void checkValidity(List<IFD> ifds, RepInfo info)
protected void checkValidity(TiffIFD ifd, RepInfo info) throws TiffException
ifd - IFDTiffExceptionprotected void reportInvalid(JhoveMessage message, RepInfo info)
protected List<IFD> parseIFDs(long offset, RepInfo info) throws TiffException
offset - Starting byte offsetinfo - Representation informationTiffExceptionprotected List<IFD> parseIFDs(long offset, RepInfo info, boolean suppressErrors, int ifdType) throws TiffException
offset - Starting byte offsetinfo - Representation informationsuppressErrors - If true, use IFD even if it has errorsTiffExceptionprotected IFD parseIFDChain(long next, RepInfo info, int type, List<IFD> list, boolean suppressErrors) throws TiffException
TiffExceptionprotected void initParse()
initParse in class ModuleBaseprotected int selectMimeTypeIndex()
Copyright © 2008–2021 The Open Preservation Foundation. All rights reserved.