org.freehep.util.io
Class ASCII85InputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.freehep.util.io.ASCII85InputStream
-
- All Implemented Interfaces:
- java.io.Closeable, java.lang.AutoCloseable, ASCII85
public class ASCII85InputStream extends java.io.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.
-
-
Constructor Summary
Constructors Constructor and Description ASCII85InputStream(java.io.InputStream input)Create an ASCII85 Input Stream from given stream.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetLineNo()static voidmain(java.lang.String[] args)Print out ASCII85 of a fileintread()
-
-
-
Constructor Detail
-
ASCII85InputStream
public ASCII85InputStream(java.io.InputStream input)
Create an ASCII85 Input Stream from given stream.- Parameters:
input- input to use
-
-
Method Detail
-
read
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
getLineNo
public int getLineNo()
- Returns:
- current line number
-
main
public static void main(java.lang.String[] args) throws java.lang.ExceptionPrint out ASCII85 of a file- Parameters:
args- filename- Throws:
java.lang.Exception- when file does not exist
-
-
DMelt 3.0 © DataMelt by jWork.ORG