|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.util.xml.parse.policy.DefaultParserPolicy
org.util.xml.parse.policy.XMLParserPolicy
public class XMLParserPolicy
Constructor Summary | |
---|---|
XMLParserPolicy()
|
Method Summary | |
---|---|
Element |
allowElement(Element element)
called when element is detected. |
boolean |
checkEndTag()
if true, check open tag key and close tag key. |
boolean |
forceEmptyTag(java.lang.String key)
Basicly, all the tag must open and close. |
java.lang.String |
selectEncoding(java.lang.String last_tag_key)
if encoding cannot be detected by first line of document, this method will be called. |
Methods inherited from class org.util.xml.parse.policy.DefaultParserPolicy |
---|
finished, getInnerPolicy, throwExceptionIfDocumentHasError |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLParserPolicy()
Method Detail |
---|
public java.lang.String selectEncoding(java.lang.String last_tag_key)
ParserPolicy
selectEncoding
in interface ParserPolicy
selectEncoding
in class DefaultParserPolicy
public boolean checkEndTag()
ParserPolicy
checkEndTag
in interface ParserPolicy
checkEndTag
in class DefaultParserPolicy
public boolean forceEmptyTag(java.lang.String key)
ParserPolicy
forceEmptyTag
in interface ParserPolicy
forceEmptyTag
in class DefaultParserPolicy
public Element allowElement(Element element)
ParserPolicy
allowElement
in interface ParserPolicy
allowElement
in class DefaultParserPolicy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |