Class PBMReader
- java.lang.Object
-
- org.apache.maven.doxia.module.rtf.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
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
BAD_FILE_FORMAT
protected boolean
binary
private int
bytesPerLine
protected int
height
protected int
maxValue
private java.io.InputStream
stream
protected int
type
(package private) static int
TYPE_PBM
(package private) static int
TYPE_PGM
(package private) static int
TYPE_PPM
private static java.lang.String
UNSUPPORTED_DEPTH
private static java.lang.String
UNSUPPORTED_FORMAT
private static java.lang.String
UNSUPPORTED_TYPE
protected int
width
-
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()
-
-
-
Field Detail
-
TYPE_PBM
static final int TYPE_PBM
- See Also:
- Constant Field Values
-
TYPE_PGM
static final int TYPE_PGM
- See Also:
- Constant Field Values
-
TYPE_PPM
static final int TYPE_PPM
- See Also:
- Constant Field Values
-
BAD_FILE_FORMAT
private static final java.lang.String BAD_FILE_FORMAT
- See Also:
- Constant Field Values
-
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
-
-
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
-
-