public class EXIBodyDecoderInOrder extends AbstractEXIBodyDecoder
AbstractEXIBodyCoder.ElementContext, AbstractEXIBodyCoder.RuntimeUriContextattributePrefix, attributeQNameContext, attributeValue, channel, nextEvent, nextEventType, nextGrammar, numberOfUriContexts, stringDecoder, typeDecoderbooleanDatatype, elementContextStack, elementContextStackIndex, errorHandler, exiFactory, fidelityOptions, grammar, grammarContext, gUris, INITIAL_STACK_SIZE, learnedProductions, limitGrammarLearning, maxBuiltInElementGrammars, maxBuiltInProductions, nextUriID, preserveLexicalValues, preservePrefix, runtimeGlobalElements, xsiNilContext, xsiTypeContext| Constructor and Description |
|---|
EXIBodyDecoderInOrder(EXIFactory exiFactory) |
| Modifier and Type | Method and Description |
|---|---|
QNameContext |
decodeAttribute()
Parses attribute and returns qualified name.
|
QNameContext |
decodeAttributeXsiNil()
Parses xsi:nil attribute
|
QNameContext |
decodeAttributeXsiType()
Parses xsi:type attribute
|
Value |
decodeCharacters()
Decodes characters and reports them.
|
char[] |
decodeComment()
Parses comment with associated characters and provides comment text.
|
DocType |
decodeDocType()
Parses DOCTYPE with information items (name, publicID, systemID, text).
|
void |
decodeEndDocument()
Indicates the end of a set of XML events
|
QNameContext |
decodeEndElement()
Reads EXI end element and returns qualified name.
|
char[] |
decodeEntityReference()
Parses EntityReference and returns ER name.
|
NamespaceDeclaration |
decodeNamespaceDeclaration()
Parses namespace declaration retrieving associated URI and prefix.
|
ProcessingInstruction |
decodeProcessingInstruction()
Parses processing instruction with associated target and data.
|
void |
decodeStartDocument()
Indicates the beginning of a set of XML events
|
QNameContext |
decodeStartElement()
Reads EXI start element and returns qualified name.
|
DecoderChannel |
getChannel() |
List<NamespaceDeclaration> |
getDeclaredPrefixDeclarations()
Prefix declarations for current context (element)
|
String |
getElementPrefix()
Returns element prefix for current element as String.
|
String |
getElementQNameAsString()
Returns qualified name for element name as String
QName ::= PrefixedName | UnprefixedName
PrefixedName ::= Prefix ':' LocalPart UnprefixedName ::= LocalPart |
void |
initForEachRun() |
EventType |
next()
Reports the next available EXI event-type or
null if no more
EXI event is available. |
protected void |
readAttributeContent() |
protected void |
readAttributeContent(Datatype dt) |
void |
setInputChannel(DecoderChannel decoderChannel)
Sets input channel and resets all internal states
|
void |
setInputStream(InputStream is)
Sets the input stream and resets all internal states
|
void |
updateInputChannel(DecoderChannel decoderChannel)
Updates input channel and and does not reset internal states.
|
void |
updateInputStream(InputStream is)
Updates input stream and does not reset internal states.
|
checkDefaultPrefixNamespaceDeclaration, decode2ndLevelEventCode, decode3rdLevelEventCode, decodeAttributeAnyInvalidValueStructure, decodeAttributeGenericStructure, decodeAttributeGenericUndeclaredStructure, decodeAttributeNSStructure, decodeAttributeStructure, decodeAttributeXsiNilStructure, decodeAttributeXsiTypeStructure, decodeCharactersGenericStructure, decodeCharactersGenericUndeclaredStructure, decodeCharactersStructure, decodeCommentStructure, decodeDocTypeStructure, decodeEndDocumentStructure, decodeEndElementStructure, decodeEndElementUndeclaredStructure, decodeEntityReferenceStructure, decodeEventCode, decodeLocalName, decodeNamespaceDeclarationStructure, decodeNamespacePrefix, decodeProcessingInstructionStructure, decodeQName, decodeQNamePrefix, decodeStartDocumentStructure, decodeStartElementGenericStructure, decodeStartElementGenericUndeclaredStructure, decodeStartElementNSStructure, decodeStartElementStructure, decodeStartSelfContainedFragment, decodeUri, getAttributePrefix, getAttributeQNameAsString, getAttributeValue, handleAttributePrefix, handleElementPrefix, pushElement, updateInvalidValueAttributeaddUri, declarePrefix, declarePrefix, getCurrentGrammar, getElementContext, getGlobalStartElement, getNumberOfUris, getPrefix, getUri, getUri, getURI, getXsiNilContext, getXsiTypeContext, isBuiltInStartTagGrammarWithAtXsiTypeOnly, popElement, setErrorHandler, throwWarning, updateCurrentRule, updateElementContextpublic EXIBodyDecoderInOrder(EXIFactory exiFactory) throws EXIException
EXIExceptionpublic void setInputStream(InputStream is) throws EXIException, IOException
EXIBodyDecoderis - input streamEXIException - EXI exceptionIOException - IO exceptionEXIBodyDecoder.updateInputStream(InputStream)public void setInputChannel(DecoderChannel decoderChannel) throws EXIException, IOException
EXIBodyDecoderdecoderChannel - decoder channelEXIException - EXI exceptionIOException - IO exceptionEXIBodyDecoder.updateInputChannel(DecoderChannel)public void updateInputStream(InputStream is) throws EXIException, IOException
EXIBodyDecoderis - input streamEXIException - EXI exceptionIOException - IO exceptionEXIBodyDecoder.setInputStream(InputStream)public void updateInputChannel(DecoderChannel decoderChannel) throws EXIException, IOException
EXIBodyDecoderdecoderChannel - decoder channelEXIException - EXI exceptionIOException - IO exceptionEXIBodyDecoder.setInputChannel(DecoderChannel)public DecoderChannel getChannel()
public void initForEachRun()
throws EXIException,
IOException
initForEachRun in class AbstractEXIBodyDecoderEXIExceptionIOExceptionpublic EventType next() throws EXIException, IOException
EXIBodyDecodernull if no more
EXI event is available.EventType for next EXI eventEXIException - EXI exceptionIOException - IO exceptionpublic void decodeStartDocument()
throws EXIException
EXIBodyDecoderEXIException - EXI exceptionpublic void decodeEndDocument()
throws EXIException,
IOException
EXIBodyDecoderEXIException - EXI exceptionIOException - IO exceptionpublic QNameContext decodeStartElement() throws EXIException, IOException
EXIBodyDecoderStart element appearing as expected event.
QNameContext for qualified nameEXIException - EXI exceptionIOException - IO exceptionpublic QNameContext decodeEndElement() throws EXIException, IOException
EXIBodyDecoderQNameContext for qualified nameEXIException - EXI exceptionIOException - IO exceptionpublic List<NamespaceDeclaration> getDeclaredPrefixDeclarations()
EXIBodyDecoderpublic String getElementPrefix()
EXIBodyDecoderNote: IF Preserve.Prefixes set to TRUE ONLY callable after all NS events
String for prefixpublic String getElementQNameAsString()
EXIBodyDecoder
QName ::= PrefixedName | UnprefixedName
PrefixedName ::= Prefix ':' LocalPart
UnprefixedName ::= LocalPart
String for qnamepublic NamespaceDeclaration decodeNamespaceDeclaration() throws EXIException, IOException
EXIBodyDecoderNamespaceDeclaration ns declarationEXIException - EXI exceptionIOException - IO exceptionpublic QNameContext decodeAttributeXsiNil() throws EXIException, IOException
EXIBodyDecoderEXIException - EXI exceptionIOException - IO exceptionpublic QNameContext decodeAttributeXsiType() throws EXIException, IOException
EXIBodyDecoderQNameContext for qualified nameEXIException - EXI exceptionIOException - IO exceptionprotected void readAttributeContent(Datatype dt) throws IOException
IOExceptionprotected void readAttributeContent()
throws IOException,
EXIException
IOExceptionEXIExceptionpublic QNameContext decodeAttribute() throws EXIException, IOException
EXIBodyDecoderQNameContext for qnameEXIException - EXI exceptionIOException - IO exceptionpublic Value decodeCharacters() throws EXIException, IOException
EXIBodyDecoderValue for XML characters itemEXIException - EXI exceptionIOException - IO exceptionpublic char[] decodeEntityReference()
throws EXIException,
IOException
EXIBodyDecoderString for ER nameEXIException - EXI exceptionIOException - IO exceptionpublic char[] decodeComment()
throws EXIException,
IOException
EXIBodyDecoderString for comment textEXIException - EXI exceptionIOException - IO exceptionpublic ProcessingInstruction decodeProcessingInstruction() throws EXIException, IOException
EXIBodyDecoderString for PI target and dataEXIException - EXI exceptionIOException - IO exceptionpublic DocType decodeDocType() throws EXIException, IOException
EXIBodyDecoderDocType for DOCTYPE information itemsEXIException - EXI exceptionIOException - IO exceptionCopyright © 2018 Siemens AG. All rights reserved.