org.util.xml.parse.policy
クラス HTMLParserPolicy

java.lang.Object
  上位を拡張 org.util.xml.parse.policy.DefaultParserPolicy
      上位を拡張 org.util.xml.parse.policy.HTMLParserPolicy
すべての実装されたインタフェース:
ParserPolicy

public class HTMLParserPolicy
extends DefaultParserPolicy

作成者:
masaru

フィールドの概要
protected  java.lang.String[] forse_empty_tag_list_
           
 
コンストラクタの概要
HTMLParserPolicy()
           
 
メソッドの概要
 Element allowElement(Element element)
          called when element is detected.
 boolean checkEndTagMatch()
           
 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.
 
クラス org.util.xml.parse.policy.DefaultParserPolicy から継承されたメソッド
checkEndTag, getInnerPolicy, startElement, throwExceptionIfDocumentHasError
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

forse_empty_tag_list_

protected java.lang.String[] forse_empty_tag_list_
コンストラクタの詳細

HTMLParserPolicy

public HTMLParserPolicy()
メソッドの詳細

checkEndTagMatch

public boolean checkEndTagMatch()

forceEmptyTag

public boolean forceEmptyTag(java.lang.String key)
インタフェース ParserPolicy の記述:
Basicly, all the tag must open and close. But if this method return true, opentag will be considerd to empty tag. So end tag will disregarded.

定義:
インタフェース ParserPolicy 内の forceEmptyTag
オーバーライド:
クラス DefaultParserPolicy 内の forceEmptyTag

allowElement

public Element allowElement(Element element)
インタフェース ParserPolicy の記述:
called when element is detected.

定義:
インタフェース ParserPolicy 内の allowElement
オーバーライド:
クラス DefaultParserPolicy 内の allowElement

selectEncoding

public java.lang.String selectEncoding(java.lang.String last_tag_key)
インタフェース ParserPolicy の記述:
if encoding cannot be detected by first line of document, this method will be called. while returned null, this method will be called every time that tag detected.

定義:
インタフェース ParserPolicy 内の selectEncoding
オーバーライド:
クラス DefaultParserPolicy 内の selectEncoding