Package org.apache.daffodil.api
Class Daffodil
java.lang.Object
org.apache.daffodil.api.Daffodil
Factory object to create a
Compiler-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThese are the events that a derived specific InfosetInputter creates. -
Method Summary
Modifier and TypeMethodDescriptionstatic Compilercompiler()Create a new object used to compile DFDL schemasstatic DebuggerFactory method to get a Debugger that is controlled by a DaffodilDebuggerRunner.static InputSourceDataInputStreamnewInputSourceDataInputStream(byte[] arr) Create an InputSourceDataInputStream from a byte arraystatic InputSourceDataInputStreamCreate an InputSourceDataInputStream from a java.io.InputStreamstatic InputSourceDataInputStreamCreate an InputSourceDataInputStream from a java.nio.ByteBufferstatic InfosetInputternewJDOMInfosetInputter(org.jdom2.Document document) InfosetInputterto read an infoset represented as an org.jdom2.Documentstatic JDOMInfosetOutputterInfosetOutputterto build an infoset represented as an org.jdom2.Documentstatic InfosetInputterInfosetInputterto read an infoset represented as JSON from a java.io.InputStreamstatic InfosetOutputternewJsonInfosetOutputter(OutputStream os, boolean pretty) InfosetOutputterto build an infoset represented as JSON written to a java.io.OutputStream Output the infoset as json text, written to a java.io.OutputStreamstatic InfosetOutputterInfosetOutputterthat does not build an infoset representation, ignoring allInfosetOutputtereventsstatic InfosetInputternewScalaXMLInfosetInputter(scala.xml.Node node) InfosetInputterto read an infoset represented as a scala.xml.Nodestatic ScalaXMLInfosetOutputterInfosetOutputterto build an infoset represented as a scala.xml.Nodestatic DebuggerFactory method to get a debugger that provides verbose trace output to a PrintStreamstatic InfosetInputternewW3CDOMInfosetInputter(Document document) InfosetInputterto read an infoset represented as an org.w3c.dom.Documentstatic W3CDOMInfosetOutputterInfosetOutputterto build an infoset represented as an org.w3c.dom.Documentstatic InfosetInputterInfosetInputterto read an infoset represented as XML from a java.io.InputStreamstatic InfosetOutputternewXMLTextInfosetOutputter(OutputStream os, boolean pretty) InfosetOutputterto build an infoset represented as XML written to a java.io.OutputStreamstatic InfosetOutputternewXMLTextInfosetOutputter(OutputStream os, boolean pretty, XMLTextEscapeStyle xmlTextEscapeStyle) InfosetOutputterto build an infoset represented as XML written to a java.io.OutputStream
-
Method Details
-
compiler
Create a new object used to compile DFDL schemas- Returns:
- new object to compile DFDL schemas
-
newScalaXMLInfosetOutputter
InfosetOutputterto build an infoset represented as a scala.xml.Node- Returns:
- InfosetOutputter
-
newXMLTextInfosetOutputter
InfosetOutputterto build an infoset represented as XML written to a java.io.OutputStreamOutput the infoset as XML Text, written to a java.io.OutputStream
- Parameters:
os- the java.io.OutputStream to write the XML text topretty- enable or disable pretty printing. Pretty printing will only insert indentation and newlines where it will not affect the content of the XML.- Returns:
- InfosetOutputter
-
newXMLTextInfosetOutputter
public static InfosetOutputter newXMLTextInfosetOutputter(OutputStream os, boolean pretty, XMLTextEscapeStyle xmlTextEscapeStyle) InfosetOutputterto build an infoset represented as XML written to a java.io.OutputStreamOutput the infoset as XML Text, written to a java.io.OutputStream
- Parameters:
os- the java.io.OutputStream to write the XML text topretty- enable or disable pretty printing. Pretty printing will only insert indentation and newlines where it will not affect the content of the XML.xmlTextEscapeStyle- determine whether to wrap values of elements of type xs:string in CDATA tags in order to preserve whitespace.- Returns:
- InfosetOutputter
-
newJsonInfosetOutputter
InfosetOutputterto build an infoset represented as JSON written to a java.io.OutputStream Output the infoset as json text, written to a java.io.OutputStream- Parameters:
os- the java.io.OutputStream to write the json text topretty- enable or disable pretty printing. Pretty printing will only insert indentation and newlines where it will not affect the content of the json.- Returns:
- InfosetOutputter
-
newJDOMInfosetOutputter
InfosetOutputterto build an infoset represented as an org.jdom2.Document- Returns:
- InfosetOutputter
-
newW3CDOMInfosetOutputter
InfosetOutputterto build an infoset represented as an org.w3c.dom.Document- Returns:
- InfosetOutputter
-
newNullInfosetOutputter
InfosetOutputterthat does not build an infoset representation, ignoring allInfosetOutputterevents- Returns:
- InfosetOutputter
-
newScalaXMLInfosetInputter
InfosetInputterto read an infoset represented as a scala.xml.Node- Parameters:
node- the scala.xml.Node infoset- Returns:
- InfosetInputter
-
newXMLTextInfosetInputter
InfosetInputterto read an infoset represented as XML from a java.io.InputStreamRead in an infoset in the form of XML text from a java.io.InputStream
- Parameters:
is- the java.io.InputStream to read the XML text from- Returns:
- InfosetInputter
-
newJsonInfosetInputter
InfosetInputterto read an infoset represented as JSON from a java.io.InputStreamRead in an infoset in the form of json text from a java.io.InputStream
- Parameters:
is- the java.io.InputStream to read the json text from- Returns:
- InfosetInputter
-
newJDOMInfosetInputter
InfosetInputterto read an infoset represented as an org.jdom2.Document- Parameters:
document- the org.jdom2.Document infoset- Returns:
- InfosetInputter
-
newW3CDOMInfosetInputter
InfosetInputterto read an infoset represented as an org.w3c.dom.Document- Parameters:
document- the org.w3c.dom.Document infoset. Note that w3c Documents are not guaranteed to be thread-safe, even if all users only read/traverse it. It is up to the user to ensure that the Document passed into the W3CDOMInfosetInputter is not read or written by other threads while the W3CDOMInfosetInputter has access to it.- Returns:
- InfosetInputter
-
newInputSourceDataInputStream
Create an InputSourceDataInputStream from a java.io.InputStream- Parameters:
is- input stream to create from- Returns:
- InputSourceDataInputStream from a java.io.InputStream
-
newInputSourceDataInputStream
Create an InputSourceDataInputStream from a java.nio.ByteBuffer- Parameters:
bb- byte buffer to create from- Returns:
- InputSourceDataInputStream from a java.nio.ByteBuffer
-
newInputSourceDataInputStream
Create an InputSourceDataInputStream from a byte array- Parameters:
arr- byte array to create from- Returns:
- InputSourceDataInputStream from a byte array
-
newDaffodilDebugger
Factory method to get a Debugger that is controlled by a DaffodilDebuggerRunner.- Parameters:
dr- debugger runner- Returns:
- a Debugger that is controlled by a DaffodilDebuggerRunner
-
newTraceDebugger
Factory method to get a debugger that provides verbose trace output to a PrintStream- Parameters:
out- stream to print trace to- Returns:
- a debugger that provides verbose trace output to a PrintStream
-