Package net.solarnetwork.io
Class ASCII85OutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
net.solarnetwork.io.ASCII85OutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
The ASCII85InputStream encodes binary data as ASCII base-85 encoding. The
exact definition of ASCII base-85 encoding can be found in the PostScript
Language Reference (3rd ed.) chapter 3.13.3.
This adaptation from the original source omits the ASCII85 "armor" <~
and ~>.
- Version:
- 1.4 2003/04/13 05:34:45
- Author:
- Mark Donszelmann
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic longThe ASCII-85 point 1 value.static longThe ASCII-85 point 2 value.static longThe ASCII-85 point 3 value.static longThe ASCII-85 point 4 value.static final intThe maximum number of characters per line.Fields inherited from class java.io.FilterOutputStream
out -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.FilterOutputStream
flush, write, writeMethods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
MAX_CHARS_PER_LINE
public static final int MAX_CHARS_PER_LINEThe maximum number of characters per line.- See Also:
-
a85p1
public static long a85p1The ASCII-85 point 1 value. -
a85p2
public static long a85p2The ASCII-85 point 2 value. -
a85p3
public static long a85p3The ASCII-85 point 3 value. -
a85p4
public static long a85p4The ASCII-85 point 4 value.
-
-
Constructor Details
-
ASCII85OutputStream
Constructor.- Parameters:
out- the output stream to write to
-
-
Method Details
-
write
- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
finish
Finish the stream without closing.- Throws:
IOException- if any error occurs
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterOutputStream- Throws:
IOException
-