Class TiffReader
java.lang.Object
org.apache.commons.imaging.common.BinaryFileParser
org.apache.commons.imaging.formats.tiff.TiffReader
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static classstatic interface -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate JpegImageDatagetJpegRawImageData(ByteSource byteSource, TiffDirectory directory) private ByteOrdergetTiffByteOrder(int byteOrderByte) private TiffImageDatagetTiffRawImageData(ByteSource byteSource, TiffDirectory directory) voidread(ByteSource byteSource, Map<String, Object> params, FormatCompliance formatCompliance, TiffReader.Listener listener) readContents(ByteSource byteSource, Map<String, Object> params, FormatCompliance formatCompliance) readDirectories(ByteSource byteSource, boolean readImageData, FormatCompliance formatCompliance) private voidreadDirectories(ByteSource byteSource, FormatCompliance formatCompliance, TiffReader.Listener listener) private booleanreadDirectory(ByteSource byteSource, long directoryOffset, int dirType, FormatCompliance formatCompliance, TiffReader.Listener listener, boolean ignoreNextDirectory, List<Number> visited) private booleanreadDirectory(ByteSource byteSource, long offset, int dirType, FormatCompliance formatCompliance, TiffReader.Listener listener, List<Number> visited) readFirstDirectory(ByteSource byteSource, Map<String, Object> params, boolean readImageData, FormatCompliance formatCompliance) private TiffHeaderprivate TiffHeaderreadTiffHeader(ByteSource byteSource) Methods inherited from class org.apache.commons.imaging.common.BinaryFileParser
debugNumber, debugNumber, getByteOrder, setByteOrder
-
Field Details
-
strict
private final boolean strict
-
-
Constructor Details
-
TiffReader
public TiffReader(boolean strict)
-
-
Method Details
-
readTiffHeader
- Throws:
ImageReadExceptionIOException
-
getTiffByteOrder
- Throws:
ImageReadException
-
readTiffHeader
- Throws:
ImageReadExceptionIOException
-
readDirectories
private void readDirectories(ByteSource byteSource, FormatCompliance formatCompliance, TiffReader.Listener listener) throws ImageReadException, IOException - Throws:
ImageReadExceptionIOException
-
readDirectory
private boolean readDirectory(ByteSource byteSource, long offset, int dirType, FormatCompliance formatCompliance, TiffReader.Listener listener, List<Number> visited) throws ImageReadException, IOException - Throws:
ImageReadExceptionIOException
-
readDirectory
private boolean readDirectory(ByteSource byteSource, long directoryOffset, int dirType, FormatCompliance formatCompliance, TiffReader.Listener listener, boolean ignoreNextDirectory, List<Number> visited) throws ImageReadException, IOException - Throws:
ImageReadExceptionIOException
-
readFirstDirectory
public TiffContents readFirstDirectory(ByteSource byteSource, Map<String, Object> params, boolean readImageData, FormatCompliance formatCompliance) throws ImageReadException, IOException- Throws:
ImageReadExceptionIOException
-
readDirectories
public TiffContents readDirectories(ByteSource byteSource, boolean readImageData, FormatCompliance formatCompliance) throws ImageReadException, IOException - Throws:
ImageReadExceptionIOException
-
readContents
public TiffContents readContents(ByteSource byteSource, Map<String, Object> params, FormatCompliance formatCompliance) throws ImageReadException, IOException- Throws:
ImageReadExceptionIOException
-
read
public void read(ByteSource byteSource, Map<String, Object> params, FormatCompliance formatCompliance, TiffReader.Listener listener) throws ImageReadException, IOException- Throws:
ImageReadExceptionIOException
-
getTiffRawImageData
private TiffImageData getTiffRawImageData(ByteSource byteSource, TiffDirectory directory) throws ImageReadException, IOException - Throws:
ImageReadExceptionIOException
-
getJpegRawImageData
private JpegImageData getJpegRawImageData(ByteSource byteSource, TiffDirectory directory) throws ImageReadException, IOException - Throws:
ImageReadExceptionIOException
-