public class EXIBodyDecoderReordered 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 |
|---|
EXIBodyDecoderReordered(EXIFactory exiFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDatatype(QNameContext qnc,
Datatype d) |
protected void |
addQNameEntry(com.siemens.ct.exi.core.coder.EXIBodyDecoderReordered.QNameEntry qne) |
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.
|
Value |
decodeCharactersGeneric() |
Value |
decodeCharactersGenericUndeclared() |
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.
|
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 |
DecoderChannel |
getNextChannel() |
protected Value |
getNextContentValue(QNameContext qname) |
protected com.siemens.ct.exi.core.coder.EXIBodyDecoderReordered.QNameEntry |
getNextQNameEntry() |
protected void |
handleSpecialAttributeCases() |
protected void |
incrementValues(QNameContext valueContext,
Datatype datatype) |
protected void |
initBlock() |
protected void |
initCompressionBlock() |
protected void |
initForEachRun() |
EventType |
next()
Reports the next available EXI event-type or
null if no more
EXI event is available. |
protected void |
preReadBlockContent() |
protected void |
preReadBlockStructure() |
protected void |
setContentValues(DecoderChannel bdc,
QNameContext channelContext,
int occs,
List<Datatype> datatypes) |
void |
setInputChannel(DecoderChannel channel)
Sets input channel and resets all internal states
|
void |
setInputStream(InputStream is)
Sets the input stream and resets all internal states
|
protected AbstractEXIBodyCoder.ElementContext |
setNextElemementEntry() |
protected void |
updateAttributeToXsiType() |
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, updateElementContextprotected int eventTypeIndex
protected List<AbstractEXIBodyCoder.ElementContext> elementEntries
protected int elementEntryIndex
protected List<com.siemens.ct.exi.core.coder.EXIBodyDecoderReordered.QNameEntry> qnameEntries
protected int qnameEntryIndex
protected int docTypeEntryIndex
protected List<char[]> entityReferences
protected int entityReferenceIndex
protected List<char[]> comments
protected int commentIndex
protected List<NamespaceDeclaration> nsEntries
protected int nsEntryIndex
protected List<ProcessingInstruction> processingEntries
protected int processingEntryIndex
protected int blockValues
protected CodingMode codingMode
protected Map<QNameContext,PreReadValue> contentValues
protected int xsiValueIndex
protected int xsiPrefixIndex
protected Inflater inflater
protected Map<QNameContext,List<Datatype>> channelDatatypes
protected Map<QNameContext,PreReadValue> preReadValues
protected boolean firstChannel
protected InputStream is
public EXIBodyDecoderReordered(EXIFactory exiFactory) throws EXIException
EXIExceptionprotected void initForEachRun()
throws EXIException,
IOException
initForEachRun in class AbstractEXIBodyDecoderEXIExceptionIOExceptionprotected void initBlock()
protected void initCompressionBlock()
protected void addDatatype(QNameContext qnc, Datatype d)
public void setInputStream(InputStream is) throws EXIException, IOException
EXIBodyDecoderis - input streamEXIException - EXI exceptionIOException - IO exceptionEXIBodyDecoder.updateInputStream(InputStream)public void updateInputStream(InputStream is) throws EXIException, IOException
EXIBodyDecoderis - input streamEXIException - EXI exceptionIOException - IO exceptionEXIBodyDecoder.setInputStream(InputStream)public void setInputChannel(DecoderChannel channel) throws EXIException, IOException
EXIBodyDecoderchannel - decoder channelEXIException - EXI exceptionIOException - IO exceptionEXIBodyDecoder.updateInputChannel(DecoderChannel)public void updateInputChannel(DecoderChannel decoderChannel) throws EXIException, IOException
EXIBodyDecoderdecoderChannel - decoder channelEXIException - EXI exceptionIOException - IO exceptionEXIBodyDecoder.setInputChannel(DecoderChannel)public DecoderChannel getNextChannel() throws IOException
IOExceptionprotected void updateAttributeToXsiType()
throws EXIException,
IOException
EXIExceptionIOExceptionprotected void handleSpecialAttributeCases()
throws EXIException,
IOException
EXIExceptionIOExceptionprotected void preReadBlockStructure()
throws EXIException,
IOException
EXIExceptionIOExceptionprotected void preReadBlockContent()
throws EXIException
EXIExceptionprotected void setContentValues(DecoderChannel bdc, QNameContext channelContext, int occs, List<Datatype> datatypes) throws IOException
IOExceptionprotected Value getNextContentValue(QNameContext qname) throws EXIException, IOException
EXIExceptionIOExceptionpublic EventType next() throws EXIException, IOException
EXIBodyDecodernull if no more
EXI event is available.EventType for next EXI eventEXIException - EXI exceptionIOException - IO exceptionprotected void incrementValues(QNameContext valueContext, Datatype datatype)
public void decodeStartDocument()
EXIBodyDecoderprotected final AbstractEXIBodyCoder.ElementContext setNextElemementEntry()
public QNameContext decodeStartElement() throws IOException, EXIException
EXIBodyDecoderStart element appearing as expected event.
QNameContext for qualified nameIOException - IO exceptionEXIException - EXI exceptionpublic QNameContext decodeEndElement() throws EXIException
EXIBodyDecoderQNameContext for qualified nameEXIException - EXI 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
EXIBodyDecoderNamespaceDeclaration ns declarationEXIException - EXI exceptionpublic QNameContext decodeAttributeXsiNil() throws EXIException, IOException
EXIBodyDecoderEXIException - EXI exceptionIOException - IO exceptionpublic QNameContext decodeAttributeXsiType() throws EXIException, IOException
EXIBodyDecoderQNameContext for qualified nameEXIException - EXI exceptionIOException - IO exceptionprotected final void addQNameEntry(com.siemens.ct.exi.core.coder.EXIBodyDecoderReordered.QNameEntry qne)
protected final com.siemens.ct.exi.core.coder.EXIBodyDecoderReordered.QNameEntry getNextQNameEntry()
public 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 Value decodeCharactersGeneric() throws EXIException, IOException
EXIExceptionIOExceptionpublic Value decodeCharactersGenericUndeclared() throws EXIException, IOException
EXIExceptionIOExceptionpublic void decodeEndDocument()
throws EXIException
EXIBodyDecoderEXIException - EXI exceptionpublic DocType decodeDocType() throws EXIException
EXIBodyDecoderDocType for DOCTYPE information itemsEXIException - EXI exceptionpublic char[] decodeEntityReference()
throws EXIException
EXIBodyDecoderString for ER nameEXIException - EXI exceptionpublic char[] decodeComment()
throws EXIException
EXIBodyDecoderString for comment textEXIException - EXI exceptionpublic ProcessingInstruction decodeProcessingInstruction() throws EXIException
EXIBodyDecoderString for PI target and dataEXIException - EXI exceptionCopyright © 2018 Siemens AG. All rights reserved.