writer2latex.util
public static class Base64.OutputStream extends FilterOutputStream
Since: 1.3
See Also: Base64
Constructor Summary | |
---|---|
OutputStream(OutputStream out)
Constructs a OutputStream in ENCODE mode.
| |
OutputStream(OutputStream out, int options)
Constructs a OutputStream in
either ENCODE or DECODE mode.
|
Method Summary | |
---|---|
void | close()
Flushes and closes (I think, in the superclass) the stream.
|
void | flushBase64()
Method added by PHIL. |
void | resumeEncoding()
Resumes encoding of the stream.
|
void | suspendEncoding()
Suspends encoding of the stream.
|
void | write(int theByte)
Writes the byte to the output stream after
converting to/from Base64 notation.
|
void | write(byte[] theBytes, int off, int len)
Calls OutputStream repeatedly until len
bytes are written.
|
Parameters: out the java.io.OutputStream to which data will be written.
Since: 1.3
Valid options:
ENCODE or DECODE: Encode or Decode as data is read. DONT_BREAK_LINES: don't break lines at 76 characters (only meaningful when encoding) Note: Technically, this makes your encoding non-compliant.
Example: new Base64.OutputStream( out, Base64.ENCODE )
Parameters: out the java.io.OutputStream to which data will be written. options Specified options.
Since: 1.3
See Also: ENCODE DECODE DONT_BREAK_LINES
Since: 1.3
Since: 1.5.1
Since: 1.5.1
Parameters: theByte the byte to write
Since: 1.3
Parameters: theBytes array from which to read bytes off offset for array len max number of bytes to read into array
Since: 1.3