XmlVisitor#text(CharSequence), XMLSerializer#text(Pcdata, String)
| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private DataHandler | |
| private int | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public char | charAt(int index)
Implements java. Encode this binary data in the base64 encoding and returns the character at the specified position. |
| public byte[] | |
| public DataHandler | |
| public int | |
| public byte[] | |
| public InputStream | |
| public String | |
| public boolean | hasData()
Returns false if this object only has |
| public int | length()
Implements java. Gets the number of characters needed to represent this binary data in the base64 encoding. |
| public void | |
| public void | |
| public void | |
| public CharSequence | subSequence(int start, int end)
Implements java. Internally this is only used to split a text to a list, which doesn't happen that much for base64. |
| public String | toString()
Implements abstract org. Implements java. Returns the base64 encoded string of this data. |
| public void | writeTo(char[] buf, int start)
Overrides org. Writes itself to the character array. |
| public void | writeTo(UTF8XmlOutput output)
Implements abstract org. Writes itself to |
| public void |
| data | back to summary |
|---|---|
| private byte[] data | |
| dataHandler | back to summary |
|---|---|
| private DataHandler dataHandler | |
| dataLen | back to summary |
|---|---|
| private int dataLen Length of the valid data in | |
| mimeType | back to summary |
|---|---|
| private String mimeType Optional MIME type of | |
| Base64Data | back to summary |
|---|---|
| public Base64Data() Default constructor. | |
| charAt | back to summary |
|---|---|
| public char charAt(int index) Implements java. Encode this binary data in the base64 encoding and returns the character at the specified position.
| |
| get | back to summary |
|---|---|
| public byte[] get() Gets the raw data. The size of the byte array maybe larger than the actual length. | |
| getDataHandler | back to summary |
|---|---|
| public DataHandler getDataHandler() Gets the raw data. | |
| getDataLen | back to summary |
|---|---|
| public int getDataLen() | |
| getExact | back to summary |
|---|---|
| public byte[] getExact() Gets the byte[] of the exact length. | |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() throws IOException Gets the data as an | |
| getMimeType | back to summary |
|---|---|
| public String getMimeType() | |
| hasData | back to summary |
|---|---|
| public boolean hasData() Returns false if this object only has | |
| length | back to summary |
|---|---|
| public int length() Implements java. Gets the number of characters needed to represent this binary data in the base64 encoding.
| |
| set | back to summary |
|---|---|
| public void set(byte[] data, int len, String mimeType) Fills in the data object by a portion of the byte[].
| |
| set | back to summary |
|---|---|
| public void set(byte[] data, String mimeType) Fills in the data object by the byte[] of the exact length.
| |
| set | back to summary |
|---|---|
| public void set(DataHandler data) Fills in the data object by a | |
| subSequence | back to summary |
|---|---|
| public CharSequence subSequence(int start, int end) Implements java. Internally this is only used to split a text to a list, which doesn't happen that much for base64. So this method should be smaller than faster.
| |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract org. Implements java. Returns the base64 encoded string of this data.
| |
| writeTo | back to summary |
|---|---|
| public void writeTo(char[] buf, int start) Overrides org. Doc from org. Writes itself to the character array.
This method is used by most other
The caller must provide a big enough buffer that can hold
enough characters returned by the
| |
| writeTo | back to summary |
|---|---|
| public void writeTo(UTF8XmlOutput output) throws IOException Implements abstract org. Doc from org. Writes itself to This is the most performance critical path for the marshaller, so it warrants its own method.
| |
| writeTo | back to summary |
|---|---|
public void writeTo(XMLStreamWriter output) throws IOException, XMLStreamException
| |