com.lightdev.lib.xml.io
Class XmlDocumentReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.BufferedReader
          extended by com.lightdev.lib.xml.io.XmlReader
              extended by com.lightdev.lib.xml.io.XmlDocumentReader
All Implemented Interfaces:
XmlParserCallback, Closeable, Readable

public class XmlDocumentReader
extends XmlReader
implements XmlParserCallback

XmlDocumentReader - still experimental

Author:
Ulrich Hilger, Light Development, http://www.lightdev.com, info@lightdev.com, published under the terms and conditions of the BSD License, for details see file license.txt in the distribution package of this software

Constructor Summary
XmlDocumentReader(Reader in)
           
 
Method Summary
 XmlDocument getDocument()
           
 void handleEndTag(String tagName)
          this method is called by XmlParser when an end tag is encountered in the data that is being parsed.
 void handleStartTag(String tagName, AttributeSet a)
          this method is called by XmlParser when a start tag is encountered in the data that is being parsed.
 void handleText(String text)
          this method is called by XmlParser when a portion of content text has been parsed.
 void readDocument()
           
 
Methods inherited from class com.lightdev.lib.xml.io.XmlReader
read
 
Methods inherited from class java.io.BufferedReader
close, mark, markSupported, read, read, readLine, ready, reset, skip
 
Methods inherited from class java.io.Reader
read, read
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlDocumentReader

public XmlDocumentReader(Reader in)
Method Detail

readDocument

public void readDocument()
                  throws IOException,
                         IllegalCharacterException
Throws:
IOException
IllegalCharacterException

getDocument

public XmlDocument getDocument()

handleStartTag

public void handleStartTag(String tagName,
                           AttributeSet a)
Description copied from interface: XmlParserCallback
this method is called by XmlParser when a start tag is encountered in the data that is being parsed.

Specified by:
handleStartTag in interface XmlParserCallback
Parameters:
tagName - the name of the tag that has been encountered
a - the attributes of the tag that has been encountered
See Also:
XmlParser

handleEndTag

public void handleEndTag(String tagName)
Description copied from interface: XmlParserCallback
this method is called by XmlParser when an end tag is encountered in the data that is being parsed.

Specified by:
handleEndTag in interface XmlParserCallback
Parameters:
tagName - the name of the tag that has been encountered
See Also:
XmlParser

handleText

public void handleText(String text)
Description copied from interface: XmlParserCallback
this method is called by XmlParser when a portion of content text has been parsed.

Specified by:
handleText in interface XmlParserCallback
Parameters:
text - the text portion that has been parsed
See Also:
XmlParser