org.util.xml.parse
Class ElementParser
java.lang.Object
org.util.xml.parse.ElementParser
public class ElementParser
- extends java.lang.Object
- Author:
- masaru
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
element_part_parser_
protected static ElementPartParser element_part_parser_
ElementParser
protected ElementParser()
ElementParser
public ElementParser(java.io.Reader reader)
ElementParser
public ElementParser(java.io.InputStream is)
ElementParser
public ElementParser(java.io.InputStream is,
java.lang.String encoding)
throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
setDocumentBase
public void setDocumentBase(java.net.URI document_base)
getDocumentBase
public java.net.URI getDocumentBase()
createSubElements
public Element[] createSubElements(java.lang.String sub_path)
throws java.lang.Exception
- Throws:
java.lang.Exception
createSubParser
public ElementParser createSubParser(java.lang.String sub_path)
throws java.lang.Exception
- Throws:
java.lang.Exception
setPolicy
public void setPolicy(ParserPolicy policy)
error
public void error(ParseElement source)
parse
public Element[] parse()
throws java.io.IOException,
XMLParseException
- Throws:
java.io.IOException
XMLParseException
escape
public int escape(java.lang.String message)
throws XMLParseException,
java.io.IOException
- Throws:
XMLParseException
java.io.IOException
getResult
public Element[] getResult()
getFirstPlainTagElement
public TagElement getFirstPlainTagElement()
getEncoding
public java.lang.String getEncoding()
get
public int get()
throws java.io.IOException
- Throws:
java.io.IOException
getChar
public char getChar()
throws java.io.IOException
- Throws:
java.io.IOException