Method Summary |
|
public char | charAt(int index) Encode this binary data in the base64 encoding
and returns the character at the specified position. |
public byte[] | get() Gets the raw data. |
public DataHandler | getDataHandler() Gets the raw data. |
public int | getDataLen() |
public byte[] | getExact() Gets the byte[] of the exact length. |
public InputStream | getInputStream() Gets the data as an
InputStream . |
public String | getMimeType() |
public boolean | hasData() Returns false if this object only has
DataHandler and therefore
Base64Data.get() operation is likely going to be expensive. |
public int | length() Gets the number of characters needed to represent
this binary data in the base64 encoding. |
public void | set(byte[] data, int len, String mimeType) Fills in the data object by a portion of the byte[]. |
public void | set(byte[] data, String mimeType) Fills in the data object by the byte[] of the exact length. |
public void | set(DataHandler data) Fills in the data object by a
DataHandler . |
public CharSequence | subSequence(int start, int end) Internally this is only used to split a text to a list,
which doesn't happen that much for base64. |
public String | toString() Returns the base64 encoded string of this data. |
public void | writeTo(char[] buf, int start) |
public void | writeTo(UTF8XmlOutput output) |