Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
FilterOutputStream
gnu.mail.util.Base64OutputStream
public class Base64OutputStream
extends FilterOutputStream
From RFC 2045, section 6.8:
The Base64 Content-Transfer-Encoding is designed to represent arbitrary sequences of octets in a form that need not be humanly readable. The encoding and decoding algorithms are simple, but the encoded data are consistently only about 33 percent larger than the unencoded data.
Constructor Summary | |
| |
|
Method Summary | |
void |
|
void |
|
void |
|
void |
|
void |
|
public Base64OutputStream(OutputStream out)
Default constructor. This constructs a Base64OutputStream with a line length of 76.
public Base64OutputStream(OutputStream out, int lineLength)
Constructor.
- Parameters:
out
- the underlying output stream to encodelineLength
- the line length
public void close() throws IOException
Closes this output stream and releases any system resources associated with this stream.
public void flush() throws IOException
Flushes this output stream and forces any buffered output bytes to be written out.
public void write(b[] ) throws IOException
Writesb.length
bytes from the specified byte array to this output stream.
public void write(b[] , int off, int len) throws IOException
Writeslen
bytes from the specified byte array starting at offsetoff
to this output stream.
public void write(int c) throws IOException
Writes the specified byte to this output stream.