CharSequence for int[].
Fed to unmarshaller when the 'text' data is actually a virtual image of int array.
This class holds int[] as a triplet of (data,start,len) where 'start' and 'len' represents the start position of the data and the length.
| Modifier and Type | Field and Description |
|---|---|
| private int[] | |
| private int | |
| private StringBuilder | literal
String representation of the data. |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public char | charAt(int index)
Implements java. Returns the |
| private StringBuilder | |
| public int | |
| public void | |
| public CharSequence | subSequence(int start, int end)
Implements java. Returns a |
| public String | toString()
Implements abstract org. Implements java. Returns a string containing the characters in this sequence in the same order as this sequence. |
| public void | writeTo(UTF8XmlOutput output)
Implements abstract org. Writes itself to |
| data | back to summary |
|---|---|
| private int[] data | |
| len | back to summary |
|---|---|
| private int len | |
| literal | back to summary |
|---|---|
| private StringBuilder literal String representation of the data. Lazily computed. | |
| start | back to summary |
|---|---|
| private int start | |
| IntArrayData | back to summary |
|---|---|
| public IntArrayData(int[] data, int start, int len) | |
| IntArrayData | back to summary |
|---|---|
| public IntArrayData() | |
| charAt | back to summary |
|---|---|
| public char charAt(int index) Implements java. Doc from java. Returns the If the
| |
| getLiteral | back to summary |
|---|---|
| private StringBuilder getLiteral() Computes the literal form from the data. | |
| length | back to summary |
|---|---|
| public int length() Implements java. Doc from java. Returns the length of this character sequence. The length is the number
of 16-bit
| |
| set | back to summary |
|---|---|
| public void set(int[] data, int start, int len) Sets the int[] data to this object. This method doesn't make a copy for a performance reason. The caller is still free to modify the array it passed to this method, but he should do so with a care. The unmarshalling code isn't expecting the value to be changed while it's being routed. | |
| subSequence | back to summary |
|---|---|
| public CharSequence subSequence(int start, int end) Implements java. Doc from java. Returns a
| |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract org. Implements java. Doc from java. Returns a string containing the characters in this sequence in the same order as this sequence. The length of the string will be the length of this sequence.
| |
| 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.
| |