- java.lang.Object
-
- org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader
-
- org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.TextLoader
-
public class TextLoader extends Loader
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
-
Fields inherited from class org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader
expectText
-
-
Constructor Summary
Constructors Constructor Description TextLoader(Transducer xducer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtext(UnmarshallingContext.State state, CharSequence text)Called when this loaderis an active loaderand we see a chunk of text.-
Methods inherited from class org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Loader
childElement, expectText, fireAfterUnmarshal, fireBeforeUnmarshal, getExpectedAttributes, getExpectedChildElements, handleGenericError, handleGenericException, handleGenericException, handleParseConversionException, leaveElement, reportError, reportError, reportUnexpectedChildElement, startElement
-
-
-
-
Constructor Detail
-
TextLoader
public TextLoader(Transducer xducer)
-
-
Method Detail
-
text
public void text(UnmarshallingContext.State state, CharSequence text) throws SAXException
Description copied from class:LoaderCalled 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:
textin classLoader- Throws:
SAXException
-
-