Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fixed typo

...

void

parse(InputStream stream)

Creates an InputSourceDataInputStream based on the stream and calls the DaffodilParseXMLReader.parse(InputSourceDataInputStream) method.
void

parse(Array[Byte] arr)

Creates an InputSourceDataInputStream based on the array and calls the DaffodilParseXMLReader.parse(InputSourceDataInputStream) method. 

void

parse(InputSourceDataInputStream isdis)

Creates an SAXInfosetInputter a SAXInfosetOutputter (see below) based on the DaffodilParseXMLReader and calls the DataProcessor parse method. 

...

The SAXInfosetOutputter is an implementation of the Daffodil InfosetOutputter interface responsible for converting InfosetOutputter events to SAX ContentHandler events. According to the SAX API, applications may register a new or different ContentHandler with the XMLReader in the middle of a parse, and the SAX parser must begin using the new handler immediately. Because of this, the SAXInfosetInputter SAXInfosetOutputter must take the XMLReader as a parameter, and any time a SAX event is generated, it must call getContentHandler()  on that parameter. The definition for this class looks like:

...