パッケージ nlp4j.xml
クラス AbstractXmlHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- nlp4j.xml.AbstractXmlHandler
-
- すべての実装されたインタフェース:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
public abstract class AbstractXmlHandler extends DefaultHandler
XMLハンドラーの抽象クラスです。
Abstact XML Handler.- バージョン:
- 1.0
- 作成者:
- Hiroki Oya
-
-
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 protected Stack<String>
qNameStack
protected StringBuffer
sb
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 AbstractXmlHandler()
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 void
characters(char[] ch, int start, int length)
void
endDocument()
void
endElement(String uri, String localName, String qName)
protected String
getPath()
protected String
getText()
void
startDocument()
void
startElement(String uri, String localName, String qName, Attributes attributes)
-
クラスから継承されたメソッド org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
フィールドの詳細
-
sb
protected StringBuffer sb
-
-
メソッドの詳細
-
getPath
protected String getPath()
-
getText
protected String getText()
-
startDocument
public void startDocument() throws SAXException
- 定義:
startDocument
インタフェース内ContentHandler
- オーバーライド:
startDocument
クラス内DefaultHandler
- 例外:
SAXException
-
endDocument
public void endDocument() throws SAXException
- 定義:
endDocument
インタフェース内ContentHandler
- オーバーライド:
endDocument
クラス内DefaultHandler
- 例外:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
- 定義:
startElement
インタフェース内ContentHandler
- オーバーライド:
startElement
クラス内DefaultHandler
- 例外:
SAXException
-
endElement
public void endElement(String uri, String localName, String qName) throws SAXException
- 定義:
endElement
インタフェース内ContentHandler
- オーバーライド:
endElement
クラス内DefaultHandler
- 例外:
SAXException
-
characters
public void characters(char[] ch, int start, int length) throws SAXException
- 定義:
characters
インタフェース内ContentHandler
- オーバーライド:
characters
クラス内DefaultHandler
- 例外:
SAXException
-
-