Class PNMHeaderParser
- java.lang.Object
-
- com.twelvemonkeys.imageio.plugins.pnm.HeaderParser
-
- com.twelvemonkeys.imageio.plugins.pnm.PNMHeaderParser
-
final class PNMHeaderParser extends HeaderParser
-
-
Field Summary
Fields Modifier and Type Field Description private short
fileType
private TupleType
tupleType
-
Fields inherited from class com.twelvemonkeys.imageio.plugins.pnm.HeaderParser
input
-
-
Constructor Summary
Constructors Constructor Description PNMHeaderParser(javax.imageio.stream.ImageInputStream input, short type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static TupleType
asTupleType(int fileType)
PNMHeader
parse()
private static java.lang.String
readLineUTF8(javax.imageio.stream.ImageInputStream input)
-
Methods inherited from class com.twelvemonkeys.imageio.plugins.pnm.HeaderParser
parse
-
-
-
-
Field Detail
-
fileType
private final short fileType
-
tupleType
private final TupleType tupleType
-
-
Method Detail
-
asTupleType
static TupleType asTupleType(int fileType)
-
parse
public PNMHeader parse() throws java.io.IOException
- Specified by:
parse
in classHeaderParser
- Throws:
java.io.IOException
-
readLineUTF8
private static java.lang.String readLineUTF8(javax.imageio.stream.ImageInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
-