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

pack-priv final Class FastInfosetConnector

extends StAXConnector
Class Inheritance
Imports
org.glassfish.jaxb.core.WhiteSpaceProcessor, com.sun.xml.fastinfoset.stax.StAXDocumentParser, org.jvnet.fastinfoset.EncodingAlgorithmIndexes, org.xml.sax.SAXException, javax.xml.stream.Location, .XMLStreamConstants, .XMLStreamException

Reads from FastInfoset StAX parser and feeds into JAXB Unmarshaller.

This class will peek at future events to ascertain if characters need to be buffered or not.

Author
Paul Sandoz.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private final Base64Data
private final StringBuilder
private final FastInfosetConnector.CharSequenceImpl
private final StAXDocumentParser
private boolean
Inherited from org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.StAXConnector:
contextpredictortagNamevisitor

Constructor Summary

AccessConstructor and Description
public
FastInfosetConnector(StAXDocumentParser fastInfosetStreamReader, XmlVisitor visitor)

Method Summary

Modifier and TypeMethod and Description
public void
protected Location
protected String
private void
private void
private void
private void
processBufferedText(boolean ignorable)

private void
private void
private void
Inherited from org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.StAXConnector:
fixNullgetQNamehandleEndDocumenthandleStartDocument

Field Detail

base64Databack to summary
private final Base64Data base64Data
bufferback to summary
private final StringBuilder buffer
charArrayback to summary
private final FastInfosetConnector.CharSequenceImpl charArray
fastInfosetStreamReaderback to summary
private final StAXDocumentParser fastInfosetStreamReader
textReportedback to summary
private boolean textReported

Constructor Detail

FastInfosetConnectorback to summary
public FastInfosetConnector(StAXDocumentParser fastInfosetStreamReader, XmlVisitor visitor)

Method Detail

bridgeback to summary
public void bridge() throws XMLStreamException

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.StAXConnector.bridge.

Annotations
@Override
getCurrentLocationback to summary
protected Location getCurrentLocation()

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.StAXConnector.getCurrentLocation.

Doc from org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.StAXConnector.getCurrentLocation.

Gets the Location. Used for implementing the line number information.

Annotations
@Override
getCurrentQNameback to summary
protected String getCurrentQName()

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.StAXConnector.getCurrentQName.

Doc from org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.StAXConnector.getCurrentQName.

Gets the QName of the current element.

Annotations
@Override
handleEndElementback to summary
private void handleEndElement() throws SAXException
handleFragmentedCharactersback to summary
private void handleFragmentedCharacters() throws XMLStreamException, SAXException
handleStartElementback to summary
private void handleStartElement() throws SAXException
processBufferedTextback to summary
private void processBufferedText(boolean ignorable) throws SAXException
processIgnorableTextback to summary
private void processIgnorableText() throws SAXException
processNonIgnorableTextback to summary
private void processNonIgnorableText() throws SAXException
processUnreportedTextback to summary
private void processUnreportedText() throws SAXException
org.glassfish.jaxb.runtime.v2.runtime.unmarshaller back to summary

private final Class FastInfosetConnector.CharSequenceImpl

extends Object
implements CharSequence
Class Inheritance
  • java.lang.Object
  • org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.FastInfosetConnector.CharSequenceImpl
All Implemented Interfaces
java.lang.CharSequence

Field Summary

Modifier and TypeField and Description
pack-priv char[]
pack-priv int
pack-priv int

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
CharSequenceImpl(final char[] ch, final int start, final int length)

Method Summary

Modifier and TypeMethod and Description
public char
charAt(final 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
set()

public CharSequence
subSequence(final int start, final int end)

Implements java.lang.CharSequence.subSequence.

Returns a CharSequence that is a subsequence of this sequence.

public String
toString()

Overrides java.lang.Object.toString.

Implements java.lang.CharSequence.toString.

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

chback to summary
pack-priv char[] ch
lengthback to summary
pack-priv int length
startback to summary
pack-priv int start

Constructor Detail

CharSequenceImplback to summary
pack-priv CharSequenceImpl()
CharSequenceImplback to summary
pack-priv CharSequenceImpl(final char[] ch, final int start, final int length)

Method Detail

charAtback to summary
public char charAt(final 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
setback to summary
public void set()
subSequenceback to summary
public CharSequence subSequence(final int start, final 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()

Overrides java.lang.Object.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