|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.bind.v2.runtime.output.Pcdata
com.sun.xml.bind.v2.runtime.unmarshaller.IntArrayData
public final class IntArrayData
Typed 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.
Constructor Summary | |
---|---|
IntArrayData()
|
|
IntArrayData(int[] data,
int start,
int len)
|
Method Summary | |
---|---|
char |
charAt(int index)
|
int |
length()
|
void |
set(int[] data,
int start,
int len)
Sets the int[] data to this object. |
java.lang.CharSequence |
subSequence(int start,
int end)
|
java.lang.String |
toString()
|
void |
writeTo(UTF8XmlOutput output)
Writes itself to UTF8XmlOutput . |
Methods inherited from class com.sun.xml.bind.v2.runtime.output.Pcdata |
---|
writeTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IntArrayData(int[] data, int start, int len)
public IntArrayData()
Method Detail |
---|
public void set(int[] data, int start, int len)
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.
public int length()
public char charAt(int index)
public java.lang.CharSequence subSequence(int start, int end)
public java.lang.String toString()
toString
in interface java.lang.CharSequence
toString
in class Pcdata
public void writeTo(UTF8XmlOutput output) throws java.io.IOException
Pcdata
UTF8XmlOutput
.
This is the most performance critical path for the marshaller, so it warrants its own method.
writeTo
in class Pcdata
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |