Enum Class TIFFCompressionValue

java.lang.Object
java.lang.Enum<TIFFCompressionValue>
org.apache.fop.render.bitmap.TIFFCompressionValue
All Implemented Interfaces:
Serializable, Comparable<TIFFCompressionValue>, Constable

public enum TIFFCompressionValue extends Enum<TIFFCompressionValue>
Compression constants for TIFF image output.
  • Enum Constant Details

  • Field Details

    • name

      private final String name
    • imageType

      private final int imageType
    • isCcitt

      private boolean isCcitt
  • Constructor Details

    • TIFFCompressionValue

      private TIFFCompressionValue(String name, int imageType, boolean isCcitt)
    • TIFFCompressionValue

      private TIFFCompressionValue(String name)
  • Method Details

    • values

      public static TIFFCompressionValue[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TIFFCompressionValue valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getName

      String getName()
      Returns the name of this compression type.
      Returns:
      the compression name
    • getImageType

      int getImageType()
      Returns an image type for this compression type, a constant from BufferedImage e.g. BufferedImage.TYPE_INT_ARGB for ZLIB
      Returns:
      the image type
    • hasCCITTCompression

      boolean hasCCITTCompression()
      Returns whether or not this compression type is a CCITT type.
      Returns:
      true if the compression type is CCITT
    • getType

      static TIFFCompressionValue getType(String name)
      Return the TIFF compression constant given the string representing the type. In the case that the name doesn't match any of the compression values, null is returned.
      Parameters:
      name - the compression type name
      Returns:
      the compression constant