package infoset
Defines various classes used control the representation of the infoset for parse and unparse. Classes that extend InfosetOutputter are provided to the DataProcessor.parse method to deteremine how to output an infoset. These classes are not guaranteed to be thread-safe. Classes that extend InfosetInputter are provided to the DataProcessor.unparse method to determine how to read in an infoset. A new InfosetOutputter is required for each call to unparse().
Type Members
-
abstract
class
InfosetInputter extends infoset.InfosetInputter
Abstract class used to determine how the infoset representation should be input from a call to DataProcessor.unparse.
Abstract class used to determine how the infoset representation should be input from a call to DataProcessor.unparse. This uses a Cursor API, such that each call to advance/inspect must update a cursor value, minimizing allocations. Callers of advance/inspect are expected to copy out any information from advanceAccessor and inspectAccessor if they need to retain the information after a call to advance/inspect.
- abstract class InfosetInputterProxy extends InfosetInputter
-
abstract
class
InfosetOutputter extends infoset.InfosetOutputter
Abstract class used to determine how the infoset representation should be output from a call to DataProcessor.parse.
Abstract class used to determine how the infoset representation should be output from a call to DataProcessor.parse. The Daffodil core will call the various methods of this class in an order appropriate to create an infoset representation.
Classes that extend InfosetOutputter are not guaranteed to be thread-safe.
- abstract class InfosetOutputterProxy extends InfosetOutputter
-
class
JDOMInfosetInputter extends InfosetInputterProxy
Read in an infoset in the form of a jdom2 Document
-
class
JDOMInfosetOutputter extends InfosetOutputterProxy
Output the infoset as a jdom Document
-
class
JsonInfosetInputter extends InfosetInputterProxy
Read in an infoset in the form of json text from a java.io.Reader
-
class
JsonInfosetOutputter extends InfosetOutputterProxy
Output the infoset as json text, written to a java.io.Writer
-
class
NullInfosetOutputter extends InfosetOutputterProxy
Ignore all infoset output
-
class
ScalaXMLInfosetInputter extends InfosetInputterProxy
Read in an infoset in the form of a scala.xml.Node
-
class
ScalaXMLInfosetOutputter extends InfosetOutputterProxy
Output the infoset as a scala.xml.Node
-
class
W3CDOMInfosetInputter extends InfosetInputterProxy
Read in an infoset in the form of a w3c Document
-
class
W3CDOMInfosetOutputter extends InfosetOutputterProxy
Output the infoset as a w3c Document
-
class
XMLTextInfosetInputter extends InfosetInputterProxy
Read in an infoset in the form of XML text from a java.io.Reader
-
class
XMLTextInfosetOutputter extends InfosetOutputterProxy
Output the infoset as XML Text, written to a java.io.Writer
Apache Daffodil (incubating) Scala API
Packages
org.apache.daffodil.sapi - Provides the classes necessary to compile DFDL schemas, parse and unparse files using the compiled objects, and retrieve results and parsing diagnostics
org.apache.daffodil.sapi.logger - Provides the classes necessary to receive logging messages from Daffodil.
org.apache.daffodil.sapi.debugger - Provides the classes necessary to perform parse tracing or create a custom debugger