Class PNMHeader

java.lang.Object
com.twelvemonkeys.imageio.plugins.pnm.PNMHeader

final class PNMHeader extends Object
  • Field Details

    • fileType

      private final short fileType
    • tupleType

      private final TupleType tupleType
    • width

      private final int width
    • height

      private final int height
    • maxSampleFloat

      private final float maxSampleFloat
    • maxSample

      private final int maxSample
    • comments

      private final List<String> comments
    • byteOrder

      private final ByteOrder byteOrder
  • Constructor Details

    • PNMHeader

      public PNMHeader(short fileType, TupleType tupleType, int width, int height, int depth, int maxSample, Collection<String> comments)
    • PNMHeader

      public PNMHeader(short fileType, TupleType tupleType, int width, int height, int depth, ByteOrder byteOrder, Collection<String> comments)
  • Method Details

    • isValidFileType

      private boolean isValidFileType(short fileType)
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • getTupleType

      public TupleType getTupleType()
    • getMaxSample

      public int getMaxSample()
    • getTransparency

      public int getTransparency()
    • getSamplesPerPixel

      public int getSamplesPerPixel()
    • getBitsPerSample

      public int getBitsPerSample()
    • getTransferType

      public int getTransferType()
    • getComments

      public List<String> getComments()
    • getFileType

      public short getFileType()
    • getByteOrder

      public ByteOrder getByteOrder()
    • toString

      public String toString()
      Overrides:
      toString in class Object