public class TiffReader extends Object
| Constructor and Description |
|---|
TiffReader()
Default constructor.
Instantiates a new empty tiff reader. |
| Modifier and Type | Method and Description |
|---|---|
ValidationResult |
getBaselineValidation()
Gets the result of the validation.
|
TiffDocument |
getModel()
Gets the internal model of the Tiff file.
|
TiffInputStream |
getStream()
Gets the stream.
|
ValidationResult |
getTiffEPValidation()
Gets the result of the validation.
|
ValidationResult |
getTiffITValidation(int profile)
Gets the result of the validation.
|
protected TagValue |
getValue(int tagtype,
int n,
int id,
int beginOffset,
IFD parentIFD,
int nifd)
Gets the value of the given tag field.
|
int |
readFile(RandomAccessFile raf,
boolean validate)
Parses a Tiff File and create an internal model representation.
|
int |
readFile(String filename) |
int |
readFile(String filename,
boolean validate)
Parses a Tiff File and create an internal model representation.
|
public TiffReader()
throws ReadTagsIOException,
ReadIccConfigIOException
ReadTagsIOException - the read tags io exceptionReadIccConfigIOException - the read icc config io exceptionpublic TiffDocument getModel()
public TiffInputStream getStream()
public ValidationResult getBaselineValidation()
public ValidationResult getTiffEPValidation()
public ValidationResult getTiffITValidation(int profile)
profile - the TiffIT profile (0: default, 1: P1, 2: P2)public int readFile(String filename)
public int readFile(String filename, boolean validate)
filename - the Tiff filenamepublic int readFile(RandomAccessFile raf, boolean validate)
filename - the Tiff filenameprotected TagValue getValue(int tagtype, int n, int id, int beginOffset, IFD parentIFD, int nifd)
tagtype - the tag typen - the cardinalityid - the tag idbeginOffset - the offset position of the tag valueparentIFD - the parent ifdnifd - the ifd numberCopyright © 2015–2020. All rights reserved.