Class PNMHeader
java.lang.Object
com.twelvemonkeys.imageio.plugins.pnm.PNMHeader
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPNMHeader
(short fileType, TupleType tupleType, int width, int height, int depth, int maxSample, Collection<String> comments) PNMHeader
(short fileType, TupleType tupleType, int width, int height, int depth, ByteOrder byteOrder, Collection<String> comments) -
Method Summary
Modifier and TypeMethodDescriptionint
short
int
int
int
int
int
int
getWidth()
private boolean
isValidFileType
(short fileType) toString()
-
Field Details
-
fileType
private final short fileType -
tupleType
-
width
private final int width -
height
private final int height -
maxSampleFloat
private final float maxSampleFloat -
maxSample
private final int maxSample -
comments
-
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
-
getMaxSample
public int getMaxSample() -
getTransparency
public int getTransparency() -
getSamplesPerPixel
public int getSamplesPerPixel() -
getBitsPerSample
public int getBitsPerSample() -
getTransferType
public int getTransferType() -
getComments
-
getFileType
public short getFileType() -
getByteOrder
-
toString
-