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 final classstatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate intprivate booleanprivate final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate JpegImageDatagetJpegRawImageData(ByteSource byteSource, TiffDirectory directory) private ByteOrdergetTiffByteOrder(int byteOrderByte) private AbstractTiffImageDatagetTiffRawImageData(ByteSource byteSource, TiffDirectory directory) voidread(ByteSource byteSource, FormatCompliance formatCompliance, TiffReader.Listener listener) readContents(ByteSource byteSource, TiffImagingParameters 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, boolean readImageData, FormatCompliance formatCompliance) private TiffHeaderprivate TiffHeaderreadTiffHeader(ByteSource byteSource) Methods inherited from class BinaryFileParser
debugNumber, debugNumber, getByteOrder, setByteOrder
-
Field Details
-
strict
private final boolean strict -
bigTiff
private boolean bigTiff -
standardTiff
private boolean standardTiff -
entryMaxValueLength
private int entryMaxValueLength
-
-
Constructor Details
-
TiffReader
public TiffReader(boolean strict)
-
-
Method Details
-
getJpegRawImageData
private JpegImageData getJpegRawImageData(ByteSource byteSource, TiffDirectory directory) throws ImagingException, IOException - Throws:
ImagingExceptionIOException
-
getTiffByteOrder
- Throws:
ImagingException
-
getTiffRawImageData
private AbstractTiffImageData getTiffRawImageData(ByteSource byteSource, TiffDirectory directory) throws ImagingException, IOException - Throws:
ImagingExceptionIOException
-
read
public void read(ByteSource byteSource, FormatCompliance formatCompliance, TiffReader.Listener listener) throws ImagingException, IOException - Throws:
ImagingExceptionIOException
-
readContents
public TiffContents readContents(ByteSource byteSource, TiffImagingParameters params, FormatCompliance formatCompliance) throws ImagingException, IOException - Throws:
ImagingExceptionIOException
-
readDirectories
public TiffContents readDirectories(ByteSource byteSource, boolean readImageData, FormatCompliance formatCompliance) throws ImagingException, IOException - Throws:
ImagingExceptionIOException
-
readDirectories
private void readDirectories(ByteSource byteSource, FormatCompliance formatCompliance, TiffReader.Listener listener) throws ImagingException, IOException - Throws:
ImagingExceptionIOException
-
readDirectory
private boolean readDirectory(ByteSource byteSource, long directoryOffset, int dirType, FormatCompliance formatCompliance, TiffReader.Listener listener, boolean ignoreNextDirectory, List<Number> visited) throws ImagingException, IOException - Throws:
ImagingExceptionIOException
-
readDirectory
private boolean readDirectory(ByteSource byteSource, long offset, int dirType, FormatCompliance formatCompliance, TiffReader.Listener listener, List<Number> visited) throws ImagingException, IOException - Throws:
ImagingExceptionIOException
-
readFirstDirectory
public TiffContents readFirstDirectory(ByteSource byteSource, boolean readImageData, FormatCompliance formatCompliance) throws ImagingException, IOException - Throws:
ImagingExceptionIOException
-
readTiffHeader
- Throws:
ImagingExceptionIOException
-
readTiffHeader
- Throws:
ImagingExceptionIOException
-