stevedlawrence commented on a change in pull request #436:
URL: https://github.com/apache/incubator-daffodil/pull/436#discussion_r509385963
##########
File path: daffodil-japi/src/main/scala/org/apache/daffodil/japi/Daffodil.scala
##########
@@ -953,3 +975,68 @@ class DaffodilXMLReader private[japi] (xmlrdr:
SDaffodilXMLReader) extends org.x
*/
def parse(arr: Array[Byte]): Unit = xmlrdr.parse(arr)
}
+
+/**
+ * Read in an infoset from any SAX Reader for unparsing
+ */
+class DaffodilInputContentHandler private[japi] (sContentHandler:
SDaffodilInputContentHandler)
+ extends ContentHandlerProxy {
+ override val contentHandler: org.xml.sax.ContentHandler = sContentHandler
+
+ def getUnparseResult: UnparseResult =
+ new
UnparseResult(sContentHandler.getUnparseResult.asInstanceOf[SUnparseResult])
+ def enableInputterBlobUriAbsolutization(): Unit=
sContentHandler.enableInputterBlobUriAbsolutization()
Review comment:
Needs scala doc, and should mention that this should note be used in
production. I'm also not sure about "Absolutization". Maybe something like
"resolveRelativeInfosetBlobURIs()
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]