Interface MetadataExtractor.TiffHandler

    • Method Detail

      • setTiffMarker

        void setTiffMarker​(int marker)
                    throws MetadataExtractor.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:
        MetadataExtractor.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,
                                 MetadataExtractor.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)
      • 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)