org.freehep.util.io
Class ASCIIHexInputStream
java.lang.Object
java.io.InputStream
org.freehep.util.io.ASCIIHexInputStream
- All Implemented Interfaces:
- Closeable
public class ASCIIHexInputStream
- extends InputStream
The ASCIIHexOutputStream decodes ASCII Hexadecimal. The exact definition of
ASCII Hex encoding can be found in the PostScript Language Reference (3rd
ed.) chapter 3.13.3.
IMPORTANT: inherits from InputStream rather than FilterInputStream so that
the correct read(byte[], int, int) method is used.
- Version:
- $Id: ASCIIHexInputStream.java 8584 2006-08-10 23:06:37Z duns $
- Author:
- Mark Donszelmann
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ASCIIHexInputStream
public ASCIIHexInputStream(InputStream input)
- Create an ASCIIHex Input Stream from given stream
- Parameters:
input
- input stream to use
ASCIIHexInputStream
public ASCIIHexInputStream(InputStream input,
boolean ignore)
- Create an ASCIIHex Input Stream from given stream and have it optionally
ignore illegal characters
- Parameters:
input
- input stream to useignore
- ignore illegal characters
read
public int read()
throws IOException
- Specified by:
read
in class InputStream
- Throws:
IOException
getLineNo
public int getLineNo()
- Returns:
- current line number
Copyright © 2000-2007 FreeHEP. All Rights Reserved.