Package org.eclipse.persistence.oxm.json
Class JsonParserSource
java.lang.Object
org.eclipse.persistence.internal.oxm.record.ExtendedSource
org.eclipse.persistence.oxm.json.JsonParserSource
- All Implemented Interfaces:
Source
public final class JsonParserSource
extends org.eclipse.persistence.internal.oxm.record.ExtendedSource
Object to be used with Unmarshaller to unmarshal
JsonParser
objects
Usage:
JsonParserSource source = new JsonParserSource(jsonParser);
Object unmarshalled = jaxbUnmarshaller.unmarshal(source);-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.persistence.internal.oxm.record.XMLReader
createReader
(org.eclipse.persistence.internal.oxm.Unmarshaller unmarshaller) org.eclipse.persistence.internal.oxm.record.XMLReader
createReader
(org.eclipse.persistence.internal.oxm.Unmarshaller unmarshaller, Class unmarshalClass) jakarta.json.stream.JsonParser
Methods inherited from class org.eclipse.persistence.internal.oxm.record.ExtendedSource
getSystemId, setSystemId
-
Constructor Details
-
JsonParserSource
public JsonParserSource(jakarta.json.stream.JsonParser parser)
-
-
Method Details
-
getParser
public jakarta.json.stream.JsonParser getParser() -
createReader
public org.eclipse.persistence.internal.oxm.record.XMLReader createReader(org.eclipse.persistence.internal.oxm.Unmarshaller unmarshaller) - Specified by:
createReader
in classorg.eclipse.persistence.internal.oxm.record.ExtendedSource
-
createReader
public org.eclipse.persistence.internal.oxm.record.XMLReader createReader(org.eclipse.persistence.internal.oxm.Unmarshaller unmarshaller, Class unmarshalClass) - Specified by:
createReader
in classorg.eclipse.persistence.internal.oxm.record.ExtendedSource
-