Class ASCIIValueFormatter

java.lang.Object
org.monte.media.tiff.ASCIIValueFormatter
All Implemented Interfaces:
ValueFormatter

public class ASCIIValueFormatter extends Object implements ValueFormatter
Formats byte arrays as string.
Author:
Werner Randelshofer
  • Constructor Details

    • ASCIIValueFormatter

      public ASCIIValueFormatter()
      Creates a new enumeration. The enumeration consists of a list of String=Integer pairs.
  • Method Details

    • format

      public Object format(Object value)
      Description copied from interface: ValueFormatter
      Formats the specified value. If the value is of the desired type, it is replaced by an object which can be handled easier. For example, an integer value by a descriptive String.
      Specified by:
      format in interface ValueFormatter
    • prettyFormat

      public Object prettyFormat(Object value)
      Description copied from interface: ValueFormatter
      Formats the specified value in a human readable format.
      Specified by:
      prettyFormat in interface ValueFormatter
    • descriptionFormat

      public String descriptionFormat(Object data)
      Description copied from interface: ValueFormatter
      Describes the data. Returns null if no description is available.
      Specified by:
      descriptionFormat in interface ValueFormatter