public class EXIPullParser extends Object implements org.xmlpull.v1.XmlPullParser
| Modifier and Type | Field and Description |
|---|---|
protected List<com.siemens.ct.exi.main.api.xmlpull.EXIPullParser.AttributeContainer> |
attributes |
protected com.siemens.ct.exi.core.values.Value |
characters |
protected char[] |
comment |
protected com.siemens.ct.exi.core.EXIBodyDecoder |
decoder |
protected com.siemens.ct.exi.core.container.DocType |
docType |
protected com.siemens.ct.exi.core.context.QNameContext |
element |
protected char[] |
entityReference |
protected com.siemens.ct.exi.core.grammars.event.EventType |
eventType |
protected com.siemens.ct.exi.core.EXIStreamDecoder |
exiStream |
protected com.siemens.ct.exi.core.EXIFactory |
factory |
protected com.siemens.ct.exi.core.grammars.event.EventType |
preReadEventType |
protected com.siemens.ct.exi.core.container.ProcessingInstruction |
processingInstruction |
CDSECT, COMMENT, DOCDECL, END_DOCUMENT, END_TAG, ENTITY_REF, FEATURE_PROCESS_DOCDECL, FEATURE_PROCESS_NAMESPACES, FEATURE_REPORT_NAMESPACE_ATTRIBUTES, FEATURE_VALIDATION, IGNORABLE_WHITESPACE, NO_NAMESPACE, PROCESSING_INSTRUCTION, START_DOCUMENT, START_TAG, TEXT, TYPES| Constructor and Description |
|---|
EXIPullParser(com.siemens.ct.exi.core.EXIFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
protected com.siemens.ct.exi.core.grammars.event.EventType |
decodeEvent(com.siemens.ct.exi.core.grammars.event.EventType nextEventType) |
void |
defineEntityReplacementText(String entityName,
String replacementText) |
int |
getAttributeCount() |
String |
getAttributeName(int index) |
String |
getAttributeNamespace(int index) |
String |
getAttributePrefix(int index) |
String |
getAttributeType(int index) |
String |
getAttributeValue(int index) |
String |
getAttributeValue(String namespace,
String name) |
int |
getColumnNumber() |
int |
getDepth() |
int |
getEventType() |
protected static int |
getEventType(com.siemens.ct.exi.core.grammars.event.EventType eventType) |
boolean |
getFeature(String name) |
String |
getInputEncoding() |
int |
getLineNumber() |
String |
getName() |
String |
getNamespace() |
String |
getNamespace(String prefix) |
int |
getNamespaceCount(int depth) |
String |
getNamespacePrefix(int pos) |
String |
getNamespaceUri(int pos) |
String |
getPositionDescription() |
String |
getPrefix() |
Object |
getProperty(String name) |
String |
getText() |
char[] |
getTextCharacters(int[] holderForStartAndLength) |
protected void |
handleAttributes() |
protected void |
initForEachRun() |
boolean |
isAttributeDefault(int index) |
boolean |
isEmptyElementTag() |
boolean |
isWhitespace() |
int |
next() |
int |
nextTag() |
String |
nextText() |
int |
nextToken() |
protected void |
parseHeader(InputStream is) |
void |
require(int type,
String namespace,
String name) |
void |
setFeature(String name,
boolean state) |
void |
setInput(InputStream inputStream,
String inputEncoding) |
void |
setInput(Reader in) |
void |
setProperty(String name,
Object value) |
protected final com.siemens.ct.exi.core.EXIFactory factory
protected final com.siemens.ct.exi.core.EXIStreamDecoder exiStream
protected com.siemens.ct.exi.core.EXIBodyDecoder decoder
protected com.siemens.ct.exi.core.grammars.event.EventType eventType
protected com.siemens.ct.exi.core.grammars.event.EventType preReadEventType
protected com.siemens.ct.exi.core.context.QNameContext element
protected List<com.siemens.ct.exi.main.api.xmlpull.EXIPullParser.AttributeContainer> attributes
protected com.siemens.ct.exi.core.values.Value characters
protected com.siemens.ct.exi.core.container.DocType docType
protected char[] entityReference
protected char[] comment
protected com.siemens.ct.exi.core.container.ProcessingInstruction processingInstruction
public EXIPullParser(com.siemens.ct.exi.core.EXIFactory factory)
throws com.siemens.ct.exi.core.exceptions.EXIException
com.siemens.ct.exi.core.exceptions.EXIExceptionpublic void setFeature(String name, boolean state) throws org.xmlpull.v1.XmlPullParserException
setFeature in interface org.xmlpull.v1.XmlPullParserorg.xmlpull.v1.XmlPullParserExceptionpublic boolean getFeature(String name)
getFeature in interface org.xmlpull.v1.XmlPullParserpublic void setProperty(String name, Object value) throws org.xmlpull.v1.XmlPullParserException
setProperty in interface org.xmlpull.v1.XmlPullParserorg.xmlpull.v1.XmlPullParserExceptionpublic Object getProperty(String name)
getProperty in interface org.xmlpull.v1.XmlPullParserpublic void setInput(Reader in) throws org.xmlpull.v1.XmlPullParserException
setInput in interface org.xmlpull.v1.XmlPullParserorg.xmlpull.v1.XmlPullParserExceptionpublic void setInput(InputStream inputStream, String inputEncoding) throws org.xmlpull.v1.XmlPullParserException
setInput in interface org.xmlpull.v1.XmlPullParserorg.xmlpull.v1.XmlPullParserExceptionprotected void parseHeader(InputStream is) throws com.siemens.ct.exi.core.exceptions.EXIException, IOException
com.siemens.ct.exi.core.exceptions.EXIExceptionIOExceptionprotected void initForEachRun()
public String getInputEncoding()
getInputEncoding in interface org.xmlpull.v1.XmlPullParserpublic void defineEntityReplacementText(String entityName, String replacementText) throws org.xmlpull.v1.XmlPullParserException
defineEntityReplacementText in interface org.xmlpull.v1.XmlPullParserorg.xmlpull.v1.XmlPullParserExceptionpublic int getNamespaceCount(int depth)
throws org.xmlpull.v1.XmlPullParserException
getNamespaceCount in interface org.xmlpull.v1.XmlPullParserorg.xmlpull.v1.XmlPullParserExceptionpublic String getNamespacePrefix(int pos) throws org.xmlpull.v1.XmlPullParserException
getNamespacePrefix in interface org.xmlpull.v1.XmlPullParserorg.xmlpull.v1.XmlPullParserExceptionpublic String getNamespaceUri(int pos) throws org.xmlpull.v1.XmlPullParserException
getNamespaceUri in interface org.xmlpull.v1.XmlPullParserorg.xmlpull.v1.XmlPullParserExceptionpublic String getNamespace(String prefix)
getNamespace in interface org.xmlpull.v1.XmlPullParserpublic int getDepth()
getDepth in interface org.xmlpull.v1.XmlPullParserpublic String getPositionDescription()
getPositionDescription in interface org.xmlpull.v1.XmlPullParserpublic int getLineNumber()
getLineNumber in interface org.xmlpull.v1.XmlPullParserpublic int getColumnNumber()
getColumnNumber in interface org.xmlpull.v1.XmlPullParserpublic boolean isWhitespace()
throws org.xmlpull.v1.XmlPullParserException
isWhitespace in interface org.xmlpull.v1.XmlPullParserorg.xmlpull.v1.XmlPullParserExceptionpublic String getText()
getText in interface org.xmlpull.v1.XmlPullParserpublic char[] getTextCharacters(int[] holderForStartAndLength)
getTextCharacters in interface org.xmlpull.v1.XmlPullParserpublic String getNamespace()
getNamespace in interface org.xmlpull.v1.XmlPullParserpublic String getName()
getName in interface org.xmlpull.v1.XmlPullParserpublic String getPrefix()
getPrefix in interface org.xmlpull.v1.XmlPullParserpublic boolean isEmptyElementTag()
throws org.xmlpull.v1.XmlPullParserException
isEmptyElementTag in interface org.xmlpull.v1.XmlPullParserorg.xmlpull.v1.XmlPullParserExceptionpublic int getAttributeCount()
getAttributeCount in interface org.xmlpull.v1.XmlPullParserpublic String getAttributeNamespace(int index)
getAttributeNamespace in interface org.xmlpull.v1.XmlPullParserpublic String getAttributeName(int index)
getAttributeName in interface org.xmlpull.v1.XmlPullParserpublic String getAttributePrefix(int index)
getAttributePrefix in interface org.xmlpull.v1.XmlPullParserpublic String getAttributeType(int index)
getAttributeType in interface org.xmlpull.v1.XmlPullParserpublic boolean isAttributeDefault(int index)
isAttributeDefault in interface org.xmlpull.v1.XmlPullParserpublic String getAttributeValue(int index)
getAttributeValue in interface org.xmlpull.v1.XmlPullParserpublic String getAttributeValue(String namespace, String name)
getAttributeValue in interface org.xmlpull.v1.XmlPullParserpublic int getEventType()
throws org.xmlpull.v1.XmlPullParserException
getEventType in interface org.xmlpull.v1.XmlPullParserorg.xmlpull.v1.XmlPullParserExceptionprotected static int getEventType(com.siemens.ct.exi.core.grammars.event.EventType eventType)
public int next()
throws org.xmlpull.v1.XmlPullParserException,
IOException
next in interface org.xmlpull.v1.XmlPullParserorg.xmlpull.v1.XmlPullParserExceptionIOExceptionprotected com.siemens.ct.exi.core.grammars.event.EventType decodeEvent(com.siemens.ct.exi.core.grammars.event.EventType nextEventType)
throws com.siemens.ct.exi.core.exceptions.EXIException,
IOException
com.siemens.ct.exi.core.exceptions.EXIExceptionIOExceptionprotected void handleAttributes()
throws com.siemens.ct.exi.core.exceptions.EXIException,
IOException,
org.xmlpull.v1.XmlPullParserException
com.siemens.ct.exi.core.exceptions.EXIExceptionIOExceptionorg.xmlpull.v1.XmlPullParserExceptionpublic int nextToken()
throws org.xmlpull.v1.XmlPullParserException,
IOException
nextToken in interface org.xmlpull.v1.XmlPullParserorg.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic void require(int type,
String namespace,
String name)
throws org.xmlpull.v1.XmlPullParserException,
IOException
require in interface org.xmlpull.v1.XmlPullParserorg.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic String nextText() throws org.xmlpull.v1.XmlPullParserException, IOException
nextText in interface org.xmlpull.v1.XmlPullParserorg.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic int nextTag()
throws org.xmlpull.v1.XmlPullParserException,
IOException
nextTag in interface org.xmlpull.v1.XmlPullParserorg.xmlpull.v1.XmlPullParserExceptionIOExceptionCopyright © 2018 Siemens AG. All rights reserved.