| java.lang.Object java.io.OutputStream org.apache.xmlgraphics.util.io.Base64EncodeStream
Base64EncodeStream | public class Base64EncodeStream extends OutputStream (Code) | | This class implements a Base64 Character encoder as specified in RFC1113.
Unlike some other encoding schemes there is nothing in this encoding
that indicates where a buffer starts or ends.
This means that the encoded text will simply start with the first line
of encoded text and end with the last line of encoded text.
author: Thomas DeWeese author: Vincent Hardy author: Chuck McManis version: $Id: Base64EncodeStream.java 447277 2006-09-18 06:19:34Z jeremias $ |
Method Summary | |
public void | close() | void | encodeAtom() enocodeAtom - Take three bytes of input and encode it as 4
printable characters. | void | encodeFromArray(byte[] data, int offset, int len) enocodeAtom - Take three bytes of input and encode it as 4
printable characters. | public void | flush() This can't really flush out output since that may generate
'=' chars which would indicate the end of the stream.
Instead we flush out. | public void | write(int b) | public void | write(byte[] data) | public void | write(byte[] data, int off, int len) |
closeOutOnClose | boolean closeOutOnClose(Code) | | |
encodeBuf | byte[] encodeBuf(Code) | | |
Base64EncodeStream | public Base64EncodeStream(OutputStream out, boolean closeOutOnClose)(Code) | | |
encodeAtom | void encodeAtom() throws IOException(Code) | | enocodeAtom - Take three bytes of input and encode it as 4
printable characters. Note that if the length in len is less
than three is encodes either one or two '=' signs to indicate
padding characters.
|
encodeFromArray | void encodeFromArray(byte[] data, int offset, int len) throws IOException(Code) | | enocodeAtom - Take three bytes of input and encode it as 4
printable characters. Note that if the length in len is less
than three is encodes either one or two '=' signs to indicate
padding characters.
|
flush | public void flush() throws IOException(Code) | | This can't really flush out output since that may generate
'=' chars which would indicate the end of the stream.
Instead we flush out. You can only be sure all output is
writen by closing this stream.
|
|
|