Milyn-Smooks Version 0.4

org.milyn.dom
Class Parser

java.lang.Object
  extended byorg.milyn.dom.Parser

public class Parser
extends java.lang.Object


Nested Class Summary
static class Parser.HTMLSAXParser
          HTML parser using the cyberneko HTML configuration.
 
Constructor Summary
Parser()
           
Parser(ContainerRequest request)
           
 
Method Summary
 void append(java.io.Reader source, org.w3c.dom.Element appendElement)
          Append the content, behind the supplied input stream, to suplied document element.
 org.w3c.dom.Document parse(java.io.Reader source)
          Document parser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser()

Parser

public Parser(ContainerRequest request)
Method Detail

parse

public org.w3c.dom.Document parse(java.io.Reader source)
                           throws java.io.IOException,
                                  org.xml.sax.SAXException
Document parser.

Parameters:
source - Source content stream to be parsed.
Returns:
W3C ownerDocument.
Throws:
org.xml.sax.SAXException - Unable to parse the content.
java.io.IOException - Unable to read the input stream.

append

public void append(java.io.Reader source,
                   org.w3c.dom.Element appendElement)
            throws java.io.IOException,
                   org.xml.sax.SAXException
Append the content, behind the supplied input stream, to suplied document element.

Used to merge document fragments into a document.

Parameters:
source - Source content stream to be parsed.
appendElement - DOM element to which the content fragment is to be added.
Throws:
org.xml.sax.SAXException - Unable to parse the content.
java.io.IOException - Unable to read the input stream.

Milyn-Smooks Version 0.4