public class StAXDecoder extends Object implements XMLStreamReader
| Modifier and Type | Field and Description |
|---|---|
protected List<com.siemens.ct.exi.main.api.stream.StAXDecoder.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 boolean |
exiBodyOnly |
protected com.siemens.ct.exi.core.EXIStreamDecoder |
exiStream |
protected boolean |
namespacePrefixes |
protected com.siemens.ct.exi.core.EXIFactory |
noOptionsFactory |
protected com.siemens.ct.exi.main.api.stream.StAXDecoder.EXINamespaceContext |
nsContext |
protected com.siemens.ct.exi.core.grammars.event.EventType |
preReadEventType |
protected com.siemens.ct.exi.core.container.ProcessingInstruction |
processingInstruction |
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT| Constructor and Description |
|---|
StAXDecoder(com.siemens.ct.exi.core.EXIFactory noOptionsFactory) |
protected com.siemens.ct.exi.core.EXIFactory noOptionsFactory
protected com.siemens.ct.exi.core.EXIStreamDecoder exiStream
protected com.siemens.ct.exi.core.EXIBodyDecoder decoder
protected boolean exiBodyOnly
protected com.siemens.ct.exi.core.context.QNameContext element
protected List<com.siemens.ct.exi.main.api.stream.StAXDecoder.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
protected boolean namespacePrefixes
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.main.api.stream.StAXDecoder.EXINamespaceContext nsContext
public StAXDecoder(com.siemens.ct.exi.core.EXIFactory noOptionsFactory)
throws com.siemens.ct.exi.core.exceptions.EXIException
com.siemens.ct.exi.core.exceptions.EXIExceptionpublic void setInputStream(InputStream is) throws com.siemens.ct.exi.core.exceptions.EXIException, IOException, XMLStreamException
com.siemens.ct.exi.core.exceptions.EXIExceptionIOExceptionXMLStreamExceptionprotected void initForEachRun()
protected void parseHeader(InputStream is) throws com.siemens.ct.exi.core.exceptions.EXIException, IOException, XMLStreamException
com.siemens.ct.exi.core.exceptions.EXIExceptionIOExceptionXMLStreamExceptionpublic int getEventType()
getEventType in interface XMLStreamReaderprotected static int getEventType(com.siemens.ct.exi.core.grammars.event.EventType eventType)
public int next()
throws XMLStreamException
next in interface XMLStreamReaderXMLStreamExceptionprotected 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.EXIExceptionIOExceptionpublic void close()
throws XMLStreamException
close in interface XMLStreamReaderXMLStreamExceptionprotected void handleAttributes()
throws com.siemens.ct.exi.core.exceptions.EXIException,
IOException
com.siemens.ct.exi.core.exceptions.EXIExceptionIOExceptionpublic int getAttributeCount()
getAttributeCount in interface XMLStreamReaderpublic String getAttributeLocalName(int index)
getAttributeLocalName in interface XMLStreamReaderpublic QName getAttributeName(int index)
getAttributeName in interface XMLStreamReaderpublic String getAttributeNamespace(int index)
getAttributeNamespace in interface XMLStreamReaderpublic String getAttributePrefix(int index)
getAttributePrefix in interface XMLStreamReaderpublic String getAttributeType(int index)
getAttributeType in interface XMLStreamReaderpublic String getAttributeValue(int index)
getAttributeValue in interface XMLStreamReaderpublic String getAttributeValue(String namespaceURI, String localName)
getAttributeValue in interface XMLStreamReaderpublic String getCharacterEncodingScheme()
getCharacterEncodingScheme in interface XMLStreamReaderpublic String getElementText() throws XMLStreamException
getElementText in interface XMLStreamReaderXMLStreamExceptionpublic String getEncoding()
getEncoding in interface XMLStreamReaderpublic String getLocalName()
getLocalName in interface XMLStreamReaderpublic Location getLocation()
getLocation in interface XMLStreamReaderpublic QName getName()
getName in interface XMLStreamReaderpublic NamespaceContext getNamespaceContext()
getNamespaceContext in interface XMLStreamReaderpublic int getNamespaceCount()
getNamespaceCount in interface XMLStreamReaderpublic String getNamespacePrefix(int index)
getNamespacePrefix in interface XMLStreamReaderpublic String getNamespaceURI(int index)
getNamespaceURI in interface XMLStreamReaderpublic String getNamespaceURI(String prefix)
getNamespaceURI in interface XMLStreamReaderpublic String getNamespaceURI()
getNamespaceURI in interface XMLStreamReaderpublic String getPIData()
getPIData in interface XMLStreamReaderpublic String getPITarget()
getPITarget in interface XMLStreamReaderpublic String getPrefix()
getPrefix in interface XMLStreamReaderpublic Object getProperty(String arg0) throws IllegalArgumentException
getProperty in interface XMLStreamReaderIllegalArgumentExceptionpublic String getText()
getText in interface XMLStreamReaderpublic char[] getTextCharacters()
getTextCharacters in interface XMLStreamReaderpublic int getTextCharacters(int sourceStart,
char[] target,
int targetStart,
int length)
throws XMLStreamException
getTextCharacters in interface XMLStreamReaderXMLStreamExceptionpublic int getTextLength()
getTextLength in interface XMLStreamReaderpublic int getTextStart()
getTextStart in interface XMLStreamReaderpublic String getVersion()
getVersion in interface XMLStreamReaderpublic boolean hasName()
hasName in interface XMLStreamReaderpublic boolean hasNext()
throws XMLStreamException
hasNext in interface XMLStreamReaderXMLStreamExceptionpublic boolean hasText()
hasText in interface XMLStreamReaderpublic boolean isAttributeSpecified(int arg0)
isAttributeSpecified in interface XMLStreamReaderpublic boolean isCharacters()
isCharacters in interface XMLStreamReaderpublic boolean isEndElement()
isEndElement in interface XMLStreamReaderpublic boolean isStandalone()
isStandalone in interface XMLStreamReaderpublic boolean isStartElement()
isStartElement in interface XMLStreamReaderpublic boolean isWhiteSpace()
isWhiteSpace in interface XMLStreamReaderpublic int nextTag()
throws XMLStreamException
nextTag in interface XMLStreamReaderXMLStreamExceptionpublic void require(int type,
String namespaceURI,
String localName)
throws XMLStreamException
require in interface XMLStreamReaderXMLStreamExceptionpublic boolean standaloneSet()
standaloneSet in interface XMLStreamReaderCopyright © 2018 Siemens AG. All rights reserved.