Class FieldTypeLong8

java.lang.Object
org.apache.commons.imaging.formats.tiff.fieldtypes.AbstractFieldType
org.apache.commons.imaging.formats.tiff.fieldtypes.FieldTypeLong8

public class FieldTypeLong8 extends AbstractFieldType
Provides an implementation of the 8-byte integer field type specified by the BigTIFF extensions to the TIFF format.
  • Constructor Details

    • FieldTypeLong8

      public FieldTypeLong8(int type, String name)
  • Method Details

    • getValue

      public Object getValue(TiffField entry)
      Gets the value(s) for this field in the form of an array of long integers.
      Specified by:
      getValue in class AbstractFieldType
      Parameters:
      entry - the TIFF field as obtained from the source file.
      Returns:
      a valid, potentially empty array of Java long integers.
    • writeData

      public byte[] writeData(Object o, ByteOrder byteOrder) throws ImagingException
      Description copied from class: AbstractFieldType
      Converts the given object to a byte array.
      Specified by:
      writeData in class AbstractFieldType
      Parameters:
      o - input.
      byteOrder - output byte order; not used by all subclasses.
      Returns:
      a byte array.
      Throws:
      ImagingException - Thrown on a bad input.