public class TiffReader extends Object
TiffHandler interface.| Constructor and Description |
|---|
TiffReader() |
| Modifier and Type | Method and Description |
|---|---|
static void |
processIfd(TiffHandler handler,
RandomAccessReader reader,
Set<Integer> processedIfdOffsets,
int ifdOffset,
int tiffHeaderOffset)
Processes a TIFF IFD.
|
void |
processTiff(RandomAccessReader reader,
TiffHandler handler,
int tiffHeaderOffset)
Processes a TIFF data sequence.
|
public void processTiff(RandomAccessReader reader, TiffHandler handler, int tiffHeaderOffset) throws TiffProcessingException, IOException
reader - the RandomAccessReader from which the data should be readhandler - the TiffHandler that will coordinate processing and accept read valuestiffHeaderOffset - the offset within reader at which the TIFF header startsTiffProcessingException - if an error occurred during the processing of TIFF data that could not be
ignored or recovered fromIOException - an error occurred while accessing the required datapublic static void processIfd(TiffHandler handler, RandomAccessReader reader, Set<Integer> processedIfdOffsets, int ifdOffset, int tiffHeaderOffset) throws IOException
handler - the TiffHandler that will coordinate processing and accept read valuesreader - the RandomAccessReader from which the data should be readprocessedIfdOffsets - the set of visited IFD offsets, to avoid revisiting the same IFD in an endless loopifdOffset - the offset within reader at which the IFD data startstiffHeaderOffset - the offset within reader at which the TIFF header startsIOException - an error occurred while accessing the required dataCopyright © 2002-2016 Drew Noakes. All Rights Reserved.