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 class
private static class
static interface
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate JpegImageData
getJpegRawImageData
(ByteSource byteSource, TiffDirectory directory) private ByteOrder
getTiffByteOrder
(int byteOrderByte) private TiffImageData
getTiffRawImageData
(ByteSource byteSource, TiffDirectory directory) void
read
(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 void
readDirectories
(ByteSource byteSource, FormatCompliance formatCompliance, TiffReader.Listener listener) private boolean
readDirectory
(ByteSource byteSource, long directoryOffset, int dirType, FormatCompliance formatCompliance, TiffReader.Listener listener, boolean ignoreNextDirectory, List<Number> visited) private boolean
readDirectory
(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 TiffHeader
private TiffHeader
readTiffHeader
(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:
ImageReadException
IOException
-
getTiffByteOrder
- Throws:
ImageReadException
-
readTiffHeader
- Throws:
ImageReadException
IOException
-
readDirectories
private void readDirectories(ByteSource byteSource, FormatCompliance formatCompliance, TiffReader.Listener listener) throws ImageReadException, IOException - Throws:
ImageReadException
IOException
-
readDirectory
private boolean readDirectory(ByteSource byteSource, long offset, int dirType, FormatCompliance formatCompliance, TiffReader.Listener listener, List<Number> visited) throws ImageReadException, IOException - Throws:
ImageReadException
IOException
-
readDirectory
private boolean readDirectory(ByteSource byteSource, long directoryOffset, int dirType, FormatCompliance formatCompliance, TiffReader.Listener listener, boolean ignoreNextDirectory, List<Number> visited) throws ImageReadException, IOException - Throws:
ImageReadException
IOException
-
readFirstDirectory
public TiffContents readFirstDirectory(ByteSource byteSource, Map<String, Object> params, boolean readImageData, FormatCompliance formatCompliance) throws ImageReadException, IOException- Throws:
ImageReadException
IOException
-
readDirectories
public TiffContents readDirectories(ByteSource byteSource, boolean readImageData, FormatCompliance formatCompliance) throws ImageReadException, IOException - Throws:
ImageReadException
IOException
-
readContents
public TiffContents readContents(ByteSource byteSource, Map<String, Object> params, FormatCompliance formatCompliance) throws ImageReadException, IOException- Throws:
ImageReadException
IOException
-
read
public void read(ByteSource byteSource, Map<String, Object> params, FormatCompliance formatCompliance, TiffReader.Listener listener) throws ImageReadException, IOException- Throws:
ImageReadException
IOException
-
getTiffRawImageData
private TiffImageData getTiffRawImageData(ByteSource byteSource, TiffDirectory directory) throws ImageReadException, IOException - Throws:
ImageReadException
IOException
-
getJpegRawImageData
private JpegImageData getJpegRawImageData(ByteSource byteSource, TiffDirectory directory) throws ImageReadException, IOException - Throws:
ImageReadException
IOException
-