org.freehep.util.io
Class ASCIIHexInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by 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

Constructor Summary
ASCIIHexInputStream(InputStream input)
          Create an ASCIIHex Input Stream from given stream
ASCIIHexInputStream(InputStream input, boolean ignore)
          Create an ASCIIHex Input Stream from given stream and have it optionally ignore illegal characters
 
Method Summary
 int getLineNo()
           
 int read()
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 use
ignore - ignore illegal characters
Method Detail

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.