org.apache.commons.imaging.formats.tiff.fieldtypes

## Class FieldTypeAscii

- java.lang.Object
- - org.apache.commons.imaging.formats.tiff.fieldtypes.FieldType
  - - org.apache.commons.imaging.formats.tiff.fieldtypes.FieldTypeAscii

-     public class FieldTypeAscii
      extends FieldType

- - ### Field Summary

    - ### Fields inherited from class org.apache.commons.imaging.formats.tiff.fieldtypes.FieldType

      `ANY, ASCII, ASCII_OR_BYTE, ASCII_OR_RATIONAL, BYTE, BYTE_OR_SHORT, DOUBLE, FLOAT, IFD, LONG, LONG_OR_IFD, LONG_OR_SHORT, RATIONAL, SBYTE, SHORT, SHORT_OR_LONG, SHORT_OR_LONG_OR_RATIONAL, SHORT_OR_RATIONAL, SLONG, SRATIONAL, SSHORT, UNDEFINED`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `FieldTypeAscii(int type, String name)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `getValue(TiffField entry)`
    `byte[]` | `writeData(Object o, ByteOrder byteOrder)`

    - ### Methods inherited from class org.apache.commons.imaging.formats.tiff.fieldtypes.FieldType

      `getFieldType, getName, getSize, getType`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FieldTypeAscii

          public FieldTypeAscii(int type,
                                String name)

  - ### Method Detail

    - #### getValue

          public Object getValue(TiffField entry)

      Specified by:
        `getValue` in class `FieldType`

    - #### writeData

          public byte[] writeData(Object o,
                                  ByteOrder byteOrder)
                           throws ImageWriteException

      Specified by:
        `writeData` in class `FieldType`
      Throws:
        `ImageWriteException`

Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.