com.mmbreakfast.unlod.app.handler
Class PCXDecoder
java.lang.Object
com.mmbreakfast.unlod.app.handler.PCXDecoder
- public class PCXDecoder
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Xmin_OFFSET
protected static final int Xmin_OFFSET
- See Also:
- Constant Field Values
Ymin_OFFSET
protected static final int Ymin_OFFSET
- See Also:
- Constant Field Values
Xmax_OFFSET
protected static final int Xmax_OFFSET
- See Also:
- Constant Field Values
Ymax_OFFSET
protected static final int Ymax_OFFSET
- See Also:
- Constant Field Values
NPlanes_OFFSET
protected static final int NPlanes_OFFSET
- See Also:
- Constant Field Values
BytesPerLine_OFFSET
protected static final int BytesPerLine_OFFSET
- See Also:
- Constant Field Values
Data_OFFSET
protected static final int Data_OFFSET
- See Also:
- Constant Field Values
TOP_TWO_BITS
protected static final int TOP_TWO_BITS
- See Also:
- Constant Field Values
LO_SIX_BITS
protected static final int LO_SIX_BITS
- See Also:
- Constant Field Values
PCXDecoder
public PCXDecoder()
decode
public ImageProducer decode(ByteArrayInputStream in)
throws IOException,
PCXDecoder.InvalidPCXFileException
- Throws:
IOException
PCXDecoder.InvalidPCXFileException
decode
public ImageProducer decode(RandomAccessFile in)
throws IOException,
PCXDecoder.InvalidPCXFileException
- Throws:
IOException
PCXDecoder.InvalidPCXFileException
readNibble
private int readNibble(RandomAccessFile in,
long offset)
throws IOException,
PCXDecoder.InvalidPCXFileException
- Throws:
IOException
PCXDecoder.InvalidPCXFileException
readByte
private int readByte(RandomAccessFile in,
long offset)
throws IOException,
PCXDecoder.InvalidPCXFileException
- Throws:
IOException
PCXDecoder.InvalidPCXFileException
readNibble
private int readNibble(ByteArrayInputStream in,
int skip)
throws PCXDecoder.InvalidPCXFileException
- Throws:
PCXDecoder.InvalidPCXFileException
readByte
private int readByte(ByteArrayInputStream in,
int skip)
throws PCXDecoder.InvalidPCXFileException
- Throws:
PCXDecoder.InvalidPCXFileException