class JsonInfosetOutputter extends InfosetOutputterProxy
InfosetOutputter to build an infoset represented as JSON written to a java.io.OutputStream
- Alphabetic
- By Inheritance
- JsonInfosetOutputter
- InfosetOutputterProxy
- InfosetOutputter
- InfosetOutputter
- BlobMethodsMixin
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new JsonInfosetOutputter(os: OutputStream, pretty: Boolean)
Output the infoset as json text, written to a java.io.OutputStream
Output the infoset as json text, written to a java.io.OutputStream
- os
the java.io.OutputStream to write the json text to
- pretty
enable or disable pretty printing. Pretty printing will only insert indentation and newlines where it will not affect the content of the json.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def endArray(array: InfosetArray): Unit
Called by Daffodil internals to signify the end of an array of elements.
Called by Daffodil internals to signify the end of an array of elements.
Throws java.lang.Exception if there was an error and Daffodil should stop parsing
- array
the array that is ended. Various fields of DIArray can be accessed to determine things like the name, namespace, etc.
- Definition Classes
- InfosetOutputterProxy → InfosetOutputter → InfosetOutputter
- def endComplex(complex: InfosetComplexElement): Unit
Called by Daffodil internals to signify the end of a complex element.
Called by Daffodil internals to signify the end of a complex element.
Throws java.lang.Exception if there was an error and Daffodil should stop parsing
- complex
the complex element that is ended. Various fields of DIComplex can be accessed to determine things like the nil, name, namespace, etc.
- Definition Classes
- InfosetOutputterProxy → InfosetOutputter → InfosetOutputter
- def endDocument(): Unit
Called by Daffodil internals to signify the end of the infoset.
Called by Daffodil internals to signify the end of the infoset.
Throws java.lang.Exception if there was an error and Daffodil should stop parsing
- Definition Classes
- InfosetOutputterProxy → InfosetOutputter → InfosetOutputter
- def endSimple(diSimple: InfosetSimpleElement): Unit
Called by Daffodil internals to signify the end of a simple element.
Called by Daffodil internals to signify the end of a simple element.
Throws java.lang.Exception if there was an error and Daffodil should stop parsing
- diSimple
the simple element that is ended. Various fields of DISimple can be accessed to determine things like the value, nil, name, namespace, etc.
- Definition Classes
- InfosetOutputterProxy → InfosetOutputter → InfosetOutputter
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getBlobDirectory(): Path
- Definition Classes
- BlobMethodsMixin
- final def getBlobPaths(): Seq[Path]
- Definition Classes
- BlobMethodsMixin
- final def getBlobPrefix(): String
- Definition Classes
- BlobMethodsMixin
- final def getBlobSuffix(): String
- Definition Classes
- BlobMethodsMixin
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val infosetOutputter: runtime1.infoset.JsonInfosetOutputter
The InfosetOutputter to proxy infoset events to
The InfosetOutputter to proxy infoset events to
- Definition Classes
- JsonInfosetOutputter → InfosetOutputterProxy
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def reset(): Unit
Reset the internal state of this InfosetOutputter.
Reset the internal state of this InfosetOutputter. This should be called inbetween calls to the parse method.
- Definition Classes
- InfosetOutputterProxy → InfosetOutputter → InfosetOutputter
- final def setBlobAttributes(dir: Path, prefix: String, suffix: String): Unit
- Definition Classes
- BlobMethodsMixin
- final def setBlobPaths(paths: Seq[Path]): Unit
- Definition Classes
- BlobMethodsMixin
- def startArray(array: InfosetArray): Unit
Called by Daffodil internals to signify the beginning of an array of elements.
Called by Daffodil internals to signify the beginning of an array of elements.
Throws java.lang.Exception if there was an error and Daffodil should stop parsing
- array
the array that is started. Various fields of DIArray can be accessed to determine things like the name, namespace, etc.
- Definition Classes
- InfosetOutputterProxy → InfosetOutputter → InfosetOutputter
- def startComplex(complex: InfosetComplexElement): Unit
Called by Daffodil internals to signify the beginning of a complex element.
Called by Daffodil internals to signify the beginning of a complex element.
Throws java.lang.Exception if there was an error and Daffodil should stop parsing
- complex
the complex element that is started. Various fields of DIComplex can be accessed to determine things like the nil, name, namespace, etc.
- Definition Classes
- InfosetOutputterProxy → InfosetOutputter → InfosetOutputter
- def startDocument(): Unit
Called by Daffodil internals to signify the beginning of the infoset.
Called by Daffodil internals to signify the beginning of the infoset.
Throws java.lang.Exception if there was an error and Daffodil should stop parsing
- Definition Classes
- InfosetOutputterProxy → InfosetOutputter → InfosetOutputter
- def startSimple(diSimple: InfosetSimpleElement): Unit
Called by Daffodil internals to signify the beginning of a simple element.
Called by Daffodil internals to signify the beginning of a simple element.
Throws java.lang.Exception if there was an error and Daffodil should stop parsing
- diSimple
the simple element that is started. Various fields of DISimple can be accessed to determine things like the value, nil, name, namespace, etc.
- Definition Classes
- InfosetOutputterProxy → InfosetOutputter → InfosetOutputter
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
This is the documentation for the Apache Daffodil Scala API.
Package structure
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.udf - Provides the classes necessary to create User Defined Functions to extend the DFDL expression language
org.apache.daffodil.runtime1.layers.api - Provides the classes necessary to create custom Layer extensions to DFDL.