com.lightdev.lib.xml.io
Class XmlDocumentReader
java.lang.Object
java.io.Reader
java.io.BufferedReader
com.lightdev.lib.xml.io.XmlReader
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
| Methods inherited from class com.lightdev.lib.xml.io.XmlReader |
read |
XmlDocumentReader
public XmlDocumentReader(Reader in)
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 encountereda - 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