org.freehep.util.io
Class ASCII85InputStream
java.lang.Object
java.io.InputStream
org.freehep.util.io.ASCII85InputStream
- All Implemented Interfaces:
- Closeable, ASCII85
public class ASCII85InputStream
- extends InputStream
- implements ASCII85
The ASCII85InputStream decodes ASCII base-85 encoded data. The exact
definition of ASCII base-85 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: ASCII85InputStream.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 |
ASCII85InputStream
public ASCII85InputStream(InputStream input)
- Create an ASCII85 Input Stream from given stream.
- Parameters:
input
- input to use
read
public int read()
throws IOException
- Specified by:
read
in class InputStream
- Throws:
IOException
getLineNo
public int getLineNo()
- Returns:
- current line number
main
public static void main(String[] args)
throws Exception
- Print out ASCII85 of a file
- Parameters:
args
- filename
- Throws:
Exception
- when file does not exist
Copyright © 2000-2007 FreeHEP. All Rights Reserved.