Package com.drew.imaging.tiff
Interface TiffHandler
-
- All Known Implementing Classes:
com.drew.metadata.tiff.DirectoryTiffHandler
,ExifTiffHandler
,PhotoshopTiffHandler
public interface TiffHandler
Interface of an class capable of handling events raised during the reading of a TIFF file viaTiffReader
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
customProcessTag(int tagOffset, java.util.Set<java.lang.Integer> processedIfdOffsets, int tiffHeaderOffset, RandomAccessReader reader, int tagId, int byteCount)
void
endingIFD()
void
error(java.lang.String message)
boolean
hasFollowerIfd()
void
setByteArray(int tagId, byte[] bytes)
void
setDouble(int tagId, double double64)
void
setDoubleArray(int tagId, double[] array)
void
setFloat(int tagId, float float32)
void
setFloatArray(int tagId, float[] array)
void
setInt16s(int tagId, int int16s)
void
setInt16sArray(int tagId, short[] array)
void
setInt16u(int tagId, int int16u)
void
setInt16uArray(int tagId, int[] array)
void
setInt32s(int tagId, int int32s)
void
setInt32sArray(int tagId, int[] array)
void
setInt32u(int tagId, long int32u)
void
setInt32uArray(int tagId, long[] array)
void
setInt8s(int tagId, byte int8s)
void
setInt8sArray(int tagId, byte[] array)
void
setInt8u(int tagId, short int8u)
void
setInt8uArray(int tagId, short[] array)
void
setRational(int tagId, Rational rational)
void
setRationalArray(int tagId, Rational[] array)
void
setString(int tagId, StringValue string)
void
setTiffMarker(int marker)
Receives the 2-byte marker found in the TIFF header.java.lang.Long
tryCustomProcessFormat(int tagId, int formatCode, long componentCount)
boolean
tryEnterSubIfd(int tagId)
void
warn(java.lang.String message)
-
-
-
Method Detail
-
setTiffMarker
void setTiffMarker(int marker) throws TiffProcessingException
Receives the 2-byte marker found in the TIFF header.Implementations are not obligated to use this information for any purpose, though it may be useful for validation or perhaps differentiating the type of mapping to use for observed tags and IFDs.
- Parameters:
marker
- the 2-byte value found at position 2 of the TIFF header- Throws:
TiffProcessingException
-
tryEnterSubIfd
boolean tryEnterSubIfd(int tagId)
-
hasFollowerIfd
boolean hasFollowerIfd()
-
endingIFD
void endingIFD()
-
tryCustomProcessFormat
java.lang.Long tryCustomProcessFormat(int tagId, int formatCode, long componentCount)
-
customProcessTag
boolean customProcessTag(int tagOffset, java.util.Set<java.lang.Integer> processedIfdOffsets, int tiffHeaderOffset, RandomAccessReader reader, int tagId, int byteCount) throws java.io.IOException
- Throws:
java.io.IOException
-
warn
void warn(java.lang.String message)
-
error
void error(java.lang.String message)
-
setByteArray
void setByteArray(int tagId, byte[] bytes)
-
setString
void setString(int tagId, StringValue string)
-
setRational
void setRational(int tagId, Rational rational)
-
setRationalArray
void setRationalArray(int tagId, Rational[] array)
-
setFloat
void setFloat(int tagId, float float32)
-
setFloatArray
void setFloatArray(int tagId, float[] array)
-
setDouble
void setDouble(int tagId, double double64)
-
setDoubleArray
void setDoubleArray(int tagId, double[] array)
-
setInt8s
void setInt8s(int tagId, byte int8s)
-
setInt8sArray
void setInt8sArray(int tagId, byte[] array)
-
setInt8u
void setInt8u(int tagId, short int8u)
-
setInt8uArray
void setInt8uArray(int tagId, short[] array)
-
setInt16s
void setInt16s(int tagId, int int16s)
-
setInt16sArray
void setInt16sArray(int tagId, short[] array)
-
setInt16u
void setInt16u(int tagId, int int16u)
-
setInt16uArray
void setInt16uArray(int tagId, int[] array)
-
setInt32s
void setInt32s(int tagId, int int32s)
-
setInt32sArray
void setInt32sArray(int tagId, int[] array)
-
setInt32u
void setInt32u(int tagId, long int32u)
-
setInt32uArray
void setInt32uArray(int tagId, long[] array)
-
-