public interface EXIBodyDecoder
| 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.
|
void |
decodeStartSelfContainedFragment()
Reads EXI a self-contained start element.
|
String |
getAttributePrefix()
Returns attribute prefix for (last) attribute as String
|
String |
getAttributeQNameAsString()
Returns qualified name for (last) attribute as String
QName ::= PrefixedName | UnprefixedName
PrefixedName ::= Prefix ':' LocalPart UnprefixedName ::= LocalPart |
Value |
getAttributeValue()
Provides attribute value
|
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 |
EventType |
next()
Reports the next available EXI event-type or
null if no more
EXI event is available. |
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
|
void |
updateInputChannel(DecoderChannel channel)
Updates input channel and and does not reset internal states.
|
void |
updateInputStream(InputStream is)
Updates input stream and does not reset internal states.
|
void setInputStream(InputStream is) throws EXIException, IOException
is - input streamEXIException - EXI exceptionIOException - IO exceptionupdateInputStream(InputStream)void setInputChannel(DecoderChannel channel) throws EXIException, IOException
channel - decoder channelEXIException - EXI exceptionIOException - IO exceptionupdateInputChannel(DecoderChannel)void updateInputStream(InputStream is) throws EXIException, IOException
is - input streamEXIException - EXI exceptionIOException - IO exceptionsetInputStream(InputStream)void updateInputChannel(DecoderChannel channel) throws EXIException, IOException
channel - decoder channelEXIException - EXI exceptionIOException - IO exceptionsetInputChannel(DecoderChannel)EventType next() throws EXIException, IOException
null if no more
EXI event is available.EventType for next EXI eventEXIException - EXI exceptionIOException - IO exceptionvoid decodeStartDocument()
throws EXIException,
IOException
EXIException - EXI exceptionIOException - IO exceptionvoid decodeEndDocument()
throws EXIException,
IOException
EXIException - EXI exceptionIOException - IO exceptionQNameContext decodeStartElement() throws EXIException, IOException
Start element appearing as expected event.
QNameContext for qualified nameEXIException - EXI exceptionIOException - IO exceptionString getElementPrefix()
Note: IF Preserve.Prefixes set to TRUE ONLY callable after all NS events
String for prefixString getElementQNameAsString()
QName ::= PrefixedName | UnprefixedName
PrefixedName ::= Prefix ':' LocalPart
UnprefixedName ::= LocalPart
String for qnamevoid decodeStartSelfContainedFragment()
throws EXIException,
IOException
EXIException - EXI exceptionIOException - IO exceptionQNameContext decodeEndElement() throws EXIException, IOException
QNameContext for qualified nameEXIException - EXI exceptionIOException - IO exceptionQNameContext decodeAttributeXsiNil() throws EXIException, IOException
EXIException - EXI exceptionIOException - IO exceptionQNameContext decodeAttributeXsiType() throws EXIException, IOException
QNameContext for qualified nameEXIException - EXI exceptionIOException - IO exceptionQNameContext decodeAttribute() throws EXIException, IOException
QNameContext for qnameEXIException - EXI exceptionIOException - IO exceptionString getAttributePrefix()
String for prefixString getAttributeQNameAsString()
QName ::= PrefixedName | UnprefixedName
PrefixedName ::= Prefix ':' LocalPart
UnprefixedName ::= LocalPart
String for qnameValue getAttributeValue()
Value for attribute valueNamespaceDeclaration decodeNamespaceDeclaration() throws EXIException, IOException
NamespaceDeclaration ns declarationEXIException - EXI exceptionIOException - IO exceptionList<NamespaceDeclaration> getDeclaredPrefixDeclarations()
Value decodeCharacters() throws EXIException, IOException
Value for XML characters itemEXIException - EXI exceptionIOException - IO exceptionDocType decodeDocType() throws EXIException, IOException
DocType for DOCTYPE information itemsEXIException - EXI exceptionIOException - IO exceptionchar[] decodeEntityReference()
throws EXIException,
IOException
String for ER nameEXIException - EXI exceptionIOException - IO exceptionchar[] decodeComment()
throws EXIException,
IOException
String for comment textEXIException - EXI exceptionIOException - IO exceptionProcessingInstruction decodeProcessingInstruction() throws EXIException, IOException
String for PI target and dataEXIException - EXI exceptionIOException - IO exceptionCopyright © 2018 Siemens AG. All rights reserved.