パッケージ org.xmlpull.v1.sax2
クラス Driver
- java.lang.Object
-
- org.xmlpull.v1.sax2.Driver
-
- すべての実装されたインタフェース:
Attributes,Locator,XMLReader
public class Driver extends Object implements Locator, XMLReader, Attributes
SAX2 Driver that pulls events from XmlPullParser and comverts them into SAX2 callbacks.- 作成者:
- Aleksander Slominski
-
-
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 protected static StringAPACHE_DYNAMIC_VALIDATION_FEATUREprotected static StringAPACHE_SCHEMA_VALIDATION_FEATUREprotected ContentHandlercontentHandlerprotected static StringDECLARATION_HANDLER_PROPERTYprotected ErrorHandlererrorHandlerprotected static StringLEXICAL_HANDLER_PROPERTYprotected static StringNAMESPACE_PREFIXES_FEATUREprotected static StringNAMESPACES_FEATUREprotected XmlPullParserppprotected StringsystemIdprotected static StringVALIDATION_FEATURE
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 Driver()Driver(XmlPullParser pp)
-
メソッドの概要
-
-
-
フィールドの詳細
-
DECLARATION_HANDLER_PROPERTY
protected static final String DECLARATION_HANDLER_PROPERTY
- 関連項目:
- 定数フィールド値
-
APACHE_SCHEMA_VALIDATION_FEATURE
protected static final String APACHE_SCHEMA_VALIDATION_FEATURE
- 関連項目:
- 定数フィールド値
-
APACHE_DYNAMIC_VALIDATION_FEATURE
protected static final String APACHE_DYNAMIC_VALIDATION_FEATURE
- 関連項目:
- 定数フィールド値
-
contentHandler
protected ContentHandler contentHandler
-
errorHandler
protected ErrorHandler errorHandler
-
systemId
protected String systemId
-
pp
protected XmlPullParser pp
-
-
コンストラクタの詳細
-
Driver
public Driver() throws XmlPullParserException
-
Driver
public Driver(XmlPullParser pp) throws XmlPullParserException
-
-
メソッドの詳細
-
getLength
public int getLength()
- 定義:
getLengthインタフェース内Attributes
-
getURI
public String getURI(int index)
- 定義:
getURIインタフェース内Attributes
-
getLocalName
public String getLocalName(int index)
- 定義:
getLocalNameインタフェース内Attributes
-
getQName
public String getQName(int index)
- 定義:
getQNameインタフェース内Attributes
-
getType
public String getType(int index)
- 定義:
getTypeインタフェース内Attributes
-
getValue
public String getValue(int index)
- 定義:
getValueインタフェース内Attributes
-
getIndex
public int getIndex(String uri, String localName)
- 定義:
getIndexインタフェース内Attributes
-
getIndex
public int getIndex(String qName)
- 定義:
getIndexインタフェース内Attributes
-
getType
public String getType(String uri, String localName)
- 定義:
getTypeインタフェース内Attributes
-
getType
public String getType(String qName)
- 定義:
getTypeインタフェース内Attributes
-
getValue
public String getValue(String uri, String localName)
- 定義:
getValueインタフェース内Attributes
-
getValue
public String getValue(String qName)
- 定義:
getValueインタフェース内Attributes
-
getPublicId
public String getPublicId()
- 定義:
getPublicIdインタフェース内Locator
-
getSystemId
public String getSystemId()
- 定義:
getSystemIdインタフェース内Locator
-
getLineNumber
public int getLineNumber()
- 定義:
getLineNumberインタフェース内Locator
-
getColumnNumber
public int getColumnNumber()
- 定義:
getColumnNumberインタフェース内Locator
-
getFeature
public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException
- 定義:
getFeatureインタフェース内XMLReader- 例外:
SAXNotRecognizedExceptionSAXNotSupportedException
-
setFeature
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException
- 定義:
setFeatureインタフェース内XMLReader- 例外:
SAXNotRecognizedExceptionSAXNotSupportedException
-
getProperty
public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException
- 定義:
getPropertyインタフェース内XMLReader- 例外:
SAXNotRecognizedExceptionSAXNotSupportedException
-
setProperty
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException
- 定義:
setPropertyインタフェース内XMLReader- 例外:
SAXNotRecognizedExceptionSAXNotSupportedException
-
setEntityResolver
public void setEntityResolver(EntityResolver resolver)
- 定義:
setEntityResolverインタフェース内XMLReader
-
getEntityResolver
public EntityResolver getEntityResolver()
- 定義:
getEntityResolverインタフェース内XMLReader
-
setDTDHandler
public void setDTDHandler(DTDHandler handler)
- 定義:
setDTDHandlerインタフェース内XMLReader
-
getDTDHandler
public DTDHandler getDTDHandler()
- 定義:
getDTDHandlerインタフェース内XMLReader
-
setContentHandler
public void setContentHandler(ContentHandler handler)
- 定義:
setContentHandlerインタフェース内XMLReader
-
getContentHandler
public ContentHandler getContentHandler()
- 定義:
getContentHandlerインタフェース内XMLReader
-
setErrorHandler
public void setErrorHandler(ErrorHandler handler)
- 定義:
setErrorHandlerインタフェース内XMLReader
-
getErrorHandler
public ErrorHandler getErrorHandler()
- 定義:
getErrorHandlerインタフェース内XMLReader
-
parse
public void parse(InputSource source) throws SAXException, IOException
- 定義:
parseインタフェース内XMLReader- 例外:
SAXExceptionIOException
-
parse
public void parse(String systemId) throws SAXException, IOException
- 定義:
parseインタフェース内XMLReader- 例外:
SAXExceptionIOException
-
parseSubTree
public void parseSubTree(XmlPullParser pp) throws SAXException, IOException
-
startElement
protected void startElement(String namespace, String localName, String qName) throws SAXException
Calls {@link ContentHandler.startElement(String, String, String, Attributes) startElement} on theContentHandlerwiththisdriver object as theAttributesimplementation. In default implementationAttributesobject is valid only during this method call and may not be stored. Sub-classes can overwrite this method to cache attributes.- 例外:
SAXException
-
-