Class TextLoader
java.lang.Object
com.sun.xml.bind.v2.runtime.unmarshaller.Loader
com.sun.xml.bind.v2.runtime.unmarshaller.TextLoader
Unmarshals a text into an object.
If the caller can use LeafPropertyLoader
, that's usually faster.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Field Summary
Fields inherited from class com.sun.xml.bind.v2.runtime.unmarshaller.Loader
expectText
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
text
(UnmarshallingContext.State state, CharSequence text) Called when this loaderis an active loaderand we see a chunk of text.Methods inherited from class com.sun.xml.bind.v2.runtime.unmarshaller.Loader
childElement, expectText, fireAfterUnmarshal, fireBeforeUnmarshal, getExpectedAttributes, getExpectedChildElements, handleGenericError, handleGenericException, handleGenericException, handleParseConversionException, leaveElement, reportError, reportError, reportUnexpectedChildElement, startElement
-
Constructor Details
-
TextLoader
-
-
Method Details
-
text
Description copied from class:Loader
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.- Overrides:
text
in classLoader
- Throws:
SAXException
-