Module com.sun.xml.bind
Class IntArrayData
- java.lang.Object
-
- org.glassfish.jaxb.runtime.v2.runtime.output.Pcdata
-
- org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.IntArrayData
-
- All Implemented Interfaces:
CharSequence
public final class IntArrayData extends Pcdata
TypedCharSequencefor 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.
- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description IntArrayData()IntArrayData(int[] data, int start, int len)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description charcharAt(int index)intlength()voidset(int[] data, int start, int len)Sets the int[] data to this object.CharSequencesubSequence(int start, int end)StringtoString()voidwriteTo(UTF8XmlOutput output)Writes itself toUTF8XmlOutput.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.CharSequence
chars, codePoints
-
-
-
-
Method Detail
-
set
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.
-
length
public int length()
-
charAt
public char charAt(int index)
-
subSequence
public CharSequence subSequence(int start, int end)
-
toString
public String toString()
- Specified by:
toStringin interfaceCharSequence- Specified by:
toStringin classPcdata
-
writeTo
public void writeTo(UTF8XmlOutput output) throws IOException
Description copied from class:PcdataWrites itself toUTF8XmlOutput.This is the most performance critical path for the marshaller, so it warrants its own method.
- Specified by:
writeToin classPcdata- Throws:
IOException
-
-