Class AbstractJSONDataSource

  • All Implemented Interfaces:
    org.apache.axiom.om.OMDataSource, org.apache.axiom.om.OMDataSourceExt
    Direct Known Subclasses:
    JSONBadgerfishDataSource, JSONDataSource

    public abstract class AbstractJSONDataSource
    extends org.apache.axiom.om.ds.AbstractPullOMDataSource
    JSONDataSource keeps the JSON String inside and consumes it when needed. This is to be kept in the OMSourcedElement and can be used either to expand the tree or get the JSON String directly without expanding. This uses the "Mapped" JSON convention.
    • Constructor Detail

      • AbstractJSONDataSource

        public AbstractJSONDataSource​(Reader jsonReader)
    • Method Detail

      • isDestructiveRead

        public boolean isDestructiveRead()
      • getObject

        public Object getObject()
        Specified by:
        getObject in interface org.apache.axiom.om.OMDataSourceExt
        Overrides:
        getObject in class org.apache.axiom.om.ds.AbstractOMDataSource