Class PBMReader


  • class PBMReader
    extends java.lang.Object
    PBM images reader.
    Version:
    $Id$
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) class  PBMReader.HeaderReader  
    • Constructor Summary

      Constructors 
      Constructor Description
      PBMReader​(java.lang.String fileName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) int bytesPerLine()  
      (package private) int height()  
      (package private) int maxValue()  
      (package private) int read​(byte[] b, int off, int len)  
      (package private) long skip​(long count)  
      (package private) int type()  
      (package private) int width()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • UNSUPPORTED_TYPE

        private static final java.lang.String UNSUPPORTED_TYPE
        See Also:
        Constant Field Values
      • UNSUPPORTED_FORMAT

        private static final java.lang.String UNSUPPORTED_FORMAT
        See Also:
        Constant Field Values
      • UNSUPPORTED_DEPTH

        private static final java.lang.String UNSUPPORTED_DEPTH
        See Also:
        Constant Field Values
      • type

        protected int type
      • binary

        protected boolean binary
      • width

        protected int width
      • height

        protected int height
      • maxValue

        protected int maxValue
      • bytesPerLine

        private int bytesPerLine
      • stream

        private java.io.InputStream stream
    • Constructor Detail

      • PBMReader

        PBMReader​(java.lang.String fileName)
           throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • type

        int type()
      • width

        int width()
      • height

        int height()
      • maxValue

        int maxValue()
      • bytesPerLine

        int bytesPerLine()
      • skip

        long skip​(long count)
           throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        int read​(byte[] b,
                 int off,
                 int len)
          throws java.io.IOException
        Throws:
        java.io.IOException