Enum Class PdfImageObject.ImageBytesType

java.lang.Object
java.lang.Enum<PdfImageObject.ImageBytesType>
com.itextpdf.text.pdf.parser.PdfImageObject.ImageBytesType
All Implemented Interfaces:
Serializable, Comparable<PdfImageObject.ImageBytesType>, Constable
Enclosing class:
PdfImageObject

public static enum PdfImageObject.ImageBytesType extends Enum<PdfImageObject.ImageBytesType>
Different types of data that can be stored in the bytes of a PdfImageObject
Since:
5.0.4
  • Enum Constant Details

  • Field Details

    • fileExtension

      private final String fileExtension
      the recommended file extension for streams of this type
  • Constructor Details

    • ImageBytesType

      private ImageBytesType(String fileExtension)
      Parameters:
      fileExtension - the recommended file extension for use with data of this type (for example, if the bytes were just saved to a file, what extension should the file have)
  • Method Details

    • values

      public static PdfImageObject.ImageBytesType[] 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 PdfImageObject.ImageBytesType 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
    • getFileExtension

      public String getFileExtension()
      Returns:
      the file extension registered when this type was created