Class PNMHeader
- java.lang.Object
-
- com.twelvemonkeys.imageio.plugins.pnm.PNMHeader
-
final class PNMHeader extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PNMHeader(short fileType, TupleType tupleType, int width, int height, int depth, int maxSample, java.util.Collection<java.lang.String> comments)
PNMHeader(short fileType, TupleType tupleType, int width, int height, int depth, java.nio.ByteOrder byteOrder, java.util.Collection<java.lang.String> comments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBitsPerSample()
java.nio.ByteOrder
getByteOrder()
java.util.List<java.lang.String>
getComments()
short
getFileType()
int
getHeight()
int
getMaxSample()
int
getSamplesPerPixel()
int
getTransferType()
int
getTransparency()
TupleType
getTupleType()
int
getWidth()
private boolean
isValidFileType(short fileType)
java.lang.String
toString()
-
-
-
Field Detail
-
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 java.util.List<java.lang.String> comments
-
byteOrder
private final java.nio.ByteOrder byteOrder
-
-
Constructor Detail
-
PNMHeader
public PNMHeader(short fileType, TupleType tupleType, int width, int height, int depth, int maxSample, java.util.Collection<java.lang.String> comments)
-
PNMHeader
public PNMHeader(short fileType, TupleType tupleType, int width, int height, int depth, java.nio.ByteOrder byteOrder, java.util.Collection<java.lang.String> comments)
-
-
Method Detail
-
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 java.util.List<java.lang.String> getComments()
-
getFileType
public short getFileType()
-
getByteOrder
public java.nio.ByteOrder getByteOrder()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-