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

public Class TextLoader

extends Loader
Class Inheritance
Imports
org.glassfish.jaxb.runtime.api.AccessorException, org.glassfish.jaxb.runtime.v2.runtime.Transducer, org.xml.sax.SAXException

Unmarshals a text into an object.

If the caller can use LeafPropertyLoader, that's usually faster.

Author
Kohsuke Kawaguchi
See Also
LeafPropertyLoader, ValuePropertyLoader

Field Summary

Modifier and TypeField and Description
private final Transducer<ValueT>
Inherited from org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader:
expectText

Constructor Summary

AccessConstructor and Description
public
TextLoader(Transducer<ValueT> xducer)

Method Summary

Modifier and TypeMethod and Description
public void
text(UnmarshallingContext.State state, CharSequence text)

Overrides org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader.text.

Called when this loaderis an active loaderand we see a chunk of text.

Inherited from org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader:
childElementexpectTextfireAfterUnmarshalfireBeforeUnmarshalgetExpectedAttributesgetExpectedChildElementshandleGenericErrorhandleGenericExceptionhandleGenericExceptionhandleParseConversionExceptionleaveElementreportErrorreportErrorreportUnexpectedChildElementstartElement

Field Detail

xducerback to summary
private final Transducer<ValueT> xducer

Constructor Detail

TextLoaderback to summary
public TextLoader(Transducer<ValueT> xducer)

Method Detail

textback to summary
public void text(UnmarshallingContext.State state, CharSequence text) throws SAXException

Overrides org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader.text.

Doc from org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader.text.

Called when this loaderis an active loaderand we see a chunk of text. The runtime makes sure that adjacent characters (even those separated by comments, PIs, etc) are reported as one event. IOW, you won't see two text event calls in a row.

Annotations
@Override