Top Description Fields Constructors Methods
org.glassfish.jaxb.runtime.v2.runtime.unmarshaller

public Class IntData

extends Pcdata
Class Inheritance
Imports
org.glassfish.jaxb.runtime.v2.runtime.output.Pcdata, .UTF8XmlOutput, java.io.IOException

Pcdata that represents a single integer.
Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
private int
data

The int value that this Pcdata represents.

private int
length

Length of the data in ASCII string.

private static final int[]

Constructor Summary

AccessConstructor and Description
public
IntData()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
public char
charAt(int index)

Implements java.lang.CharSequence.charAt.

Returns the char value at the specified index.

public int
length()

Implements java.lang.CharSequence.length.

Returns the length of this character sequence.

public void
reset(int i)

private static int
public CharSequence
subSequence(int start, int end)

Implements java.lang.CharSequence.subSequence.

Returns a CharSequence that is a subsequence of this sequence.

public String
toString()

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.output.Pcdata.toString.

Implements java.lang.CharSequence.toString.

Returns a string containing the characters in this sequence in the same order as this sequence.

public void
Inherited from org.glassfish.jaxb.runtime.v2.runtime.output.Pcdata:
writeTo

Field Detail

databack to summary
private int data

The int value that this Pcdata represents.

Modifiable.

lengthback to summary
private int length

Length of the data in ASCII string. For example if data=-10, then length=3

sizeTableback to summary
private static final int[] sizeTable

Constructor Detail

IntDataback to summary
public IntData()

Default constructor.

Method Detail

charAtback to summary
public char charAt(int index)

Implements java.lang.CharSequence.charAt.

Doc from java.lang.CharSequence.charAt.

Returns the char value at the specified index. An index ranges from zero to length() - 1. The first char value of the sequence is at index zero, the next at index one, and so on, as for array indexing.

If the char value specified by the index is a surrogate, the surrogate value is returned.

Annotations
@Override
lengthback to summary
public int length()

Implements java.lang.CharSequence.length.

Doc from java.lang.CharSequence.length.

Returns the length of this character sequence. The length is the number of 16-bit chars in the sequence.

Annotations
@Override
resetback to summary
public void reset(int i)
stringSizeOfIntback to summary
private static int stringSizeOfInt(int x)
subSequenceback to summary
public CharSequence subSequence(int start, int end)

Implements java.lang.CharSequence.subSequence.

Doc from java.lang.CharSequence.subSequence.

Returns a CharSequence that is a subsequence of this sequence. The subsequence starts with the char value at the specified index and ends with the char value at index end - 1. The length (in chars) of the returned sequence is end - start, so if start == end then an empty sequence is returned.

Annotations
@Override
toStringback to summary
public String toString()

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.output.Pcdata.toString.

Implements java.lang.CharSequence.toString.

Doc from java.lang.CharSequence.toString.

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.

Annotations
@Override
writeToback to summary
public void writeTo(UTF8XmlOutput output) throws IOException

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.output.Pcdata.writeTo.

Doc from org.glassfish.jaxb.runtime.v2.runtime.output.Pcdata.writeTo.

Writes itself to UTF8XmlOutput.

This is the most performance critical path for the marshaller, so it warrants its own method.

Annotations
@Override