Class JsonParserSource

  • All Implemented Interfaces:
    javax.xml.transform.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

      Constructors 
      Constructor Description
      JsonParserSource​(javax.json.stream.JsonParser parser)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.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, java.lang.Class unmarshalClass)  
      javax.json.stream.JsonParser getParser()  
      • Methods inherited from class org.eclipse.persistence.internal.oxm.record.ExtendedSource

        getSystemId, setSystemId
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.xml.transform.Source

        isEmpty
    • Constructor Detail

      • JsonParserSource

        public JsonParserSource​(javax.json.stream.JsonParser parser)
    • Method Detail

      • getParser

        public javax.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 class org.eclipse.persistence.internal.oxm.record.ExtendedSource
      • createReader

        public org.eclipse.persistence.internal.oxm.record.XMLReader createReader​(org.eclipse.persistence.internal.oxm.Unmarshaller unmarshaller,
                                                                                  java.lang.Class unmarshalClass)
        Specified by:
        createReader in class org.eclipse.persistence.internal.oxm.record.ExtendedSource