| java.lang.Object org.ozoneDB.util.MimeBase64Encoder
MimeBase64Encoder | final public class MimeBase64Encoder (Code) | | Byte to text encoder using base 64 encoding. To create a base 64
encoding of a byte stream call
MimeBase64Encoder.translate for every
sequence of bytes and
MimeBase64Encoder.getCharArray to mark closure of
the byte stream and retrieve the text presentation.
author: Based on code from the Mozilla Directory SDK |
Method Summary | |
public char[] | getCharArray() | final public void | translate(byte[] in) Given a sequence of input bytes, produces a sequence of output bytes
using the base64 encoding. |
getCharArray | public char[] getCharArray()(Code) | | |
translate | final public void translate(byte[] in)(Code) | | Given a sequence of input bytes, produces a sequence of output bytes
using the base64 encoding. If there are bytes in `out' already, the
new bytes are appended, so the caller should do `out.setLength(0)'
first if that's desired.
|
|
|