Class PNMHeaderParser

    • Constructor Summary

      Constructors 
      Constructor Description
      PNMHeaderParser​(javax.imageio.stream.ImageInputStream input, short type)  
    • Field Detail

      • fileType

        private final short fileType
      • tupleType

        private final TupleType tupleType
    • Constructor Detail

      • PNMHeaderParser

        public PNMHeaderParser​(javax.imageio.stream.ImageInputStream input,
                               short type)
    • Method Detail

      • asTupleType

        static TupleType asTupleType​(int fileType)
      • parse

        public PNMHeader parse()
                        throws java.io.IOException
        Specified by:
        parse in class HeaderParser
        Throws:
        java.io.IOException
      • readLineUTF8

        private static java.lang.String readLineUTF8​(javax.imageio.stream.ImageInputStream input)
                                              throws java.io.IOException
        Throws:
        java.io.IOException