public interface EXIBodyEncoder
| Modifier and Type | Method and Description |
|---|---|
void |
encodeAttribute(QName at,
Value value)
Supplies an attribute with the according value.
|
void |
encodeAttribute(String uri,
String localName,
String prefix,
Value value)
Supplies an attribute.
|
void |
encodeAttributeList(AttributeList attributes)
Supplies a list of namespace declarations, xsi:type and xsi:nil values
and the remaining attributes.
|
void |
encodeAttributeXsiNil(Value nil,
String pfx)
Supplies an xsi:nil attribute.
|
void |
encodeAttributeXsiType(Value type,
String pfx)
Supplies an xsi:type case.
|
void |
encodeCharacters(Value chars)
Supplies characters as Value.
|
void |
encodeComment(char[] ch,
int start,
int length)
Supplies the text of a comment.
|
void |
encodeDocType(String name,
String publicID,
String systemID,
String text)
Supplies content items to represent a DOCTYPE definition
|
void |
encodeEndDocument()
Reports the end of a set of XML events.
|
void |
encodeEndElement()
Supplies the end tag of an element.
|
void |
encodeEntityReference(String name)
Supplies the name of an entity reference
|
void |
encodeNamespaceDeclaration(String uri,
String prefix)
Namespaces are reported as a discrete Namespace event.
|
void |
encodeProcessingInstruction(String target,
String data)
Supplies the target and data for an underlying processing instruction.
|
void |
encodeStartDocument()
Reports the beginning of a set of XML events
|
void |
encodeStartElement(QName se)
Supplies the start of an element.
|
void |
encodeStartElement(String uri,
String localName,
String prefix)
Supplies the start of an element.
|
void |
flush()
Flushes (possibly) remaining bit(s) to output stream
|
void |
setErrorHandler(ErrorHandler errorHandler) |
void |
setOutputChannel(EncoderChannel channel) |
void |
setOutputStream(OutputStream os) |
void setOutputStream(OutputStream os) throws EXIException, IOException
EXIExceptionIOExceptionvoid setOutputChannel(EncoderChannel channel) throws EXIException, IOException
EXIExceptionIOExceptionvoid flush()
throws IOException
IOException - IO exceptionvoid setErrorHandler(ErrorHandler errorHandler)
errorHandler - error handlervoid encodeStartDocument()
throws EXIException,
IOException
EXIException - EXI exceptionIOException - IO exceptionvoid encodeEndDocument()
throws EXIException,
IOException
EXIException - EXI exceptionIOException - IO exceptionvoid encodeStartElement(String uri, String localName, String prefix) throws EXIException, IOException
Provides access to the namespace URI, local name , and prefix representation of the start tag.
uri - element namespace URIlocalName - element local-nameprefix - element prefix (can be null according to fidelity options)EXIException - EXI exceptionIOException - IO exceptionvoid encodeStartElement(QName se) throws EXIException, IOException
Provides access to the namespace URI, local name , and prefix representation of the start tag.
se - start element's qnameEXIException - EXI exceptionIOException - IO exceptionvoid encodeEndElement()
throws EXIException,
IOException
EXIException - EXI exceptionIOException - IO exceptionvoid encodeAttributeList(AttributeList attributes) throws EXIException, IOException
attributes - list of attributesEXIException - EXI exceptionIOException - IO exceptionvoid encodeAttribute(String uri, String localName, String prefix, Value value) throws EXIException, IOException
Provides access to the namespace URI, local name, prefix, and value of the attribute.
uri - attribute namespace URIlocalName - attribute local-nameprefix - attribute prefix (can be null according to fidelity options)value - attribute valueEXIException - EXI exceptionIOException - IO exceptionvoid encodeAttribute(QName at, Value value) throws EXIException, IOException
Provides access to the namespace URI, local name, prefix, and value of the attribute.
at - attribute's qnamevalue - attribute valueEXIException - EXI exceptionIOException - IO exceptionvoid encodeNamespaceDeclaration(String uri, String prefix) throws EXIException, IOException
uri - namespace URIprefix - namespace prefixEXIException - EXI exceptionIOException - IO exceptionvoid encodeAttributeXsiNil(Value nil, String pfx) throws EXIException, IOException
nil - xsi:nil valuepfx - xsi:nil prefixEXIException - EXI exceptionIOException - IO exceptionvoid encodeAttributeXsiType(Value type, String pfx) throws EXIException, IOException
type - xsi:type valuepfx - xsi:type prefixEXIException - EXI exceptionIOException - IO exceptionvoid encodeCharacters(Value chars) throws EXIException, IOException
chars - character valuesEXIException - EXI exceptionIOException - IO exceptionvoid encodeDocType(String name, String publicID, String systemID, String text) throws EXIException, IOException
name - doc-type namepublicID - doc-type publicIDsystemID - doc-type systemIDtext - doc-type testEXIException - EXI exceptionIOException - IO exceptionvoid encodeEntityReference(String name) throws EXIException, IOException
name - entity reference nameEXIException - EXI exceptionIOException - IO exceptionvoid encodeComment(char[] ch,
int start,
int length)
throws EXIException,
IOException
ch - comment character arraystart - comment character array startlength - comment character array lengthEXIException - EXI exceptionIOException - IO exceptionvoid encodeProcessingInstruction(String target, String data) throws EXIException, IOException
target - processing instruction targetdata - processing instruction dataEXIException - EXI exceptionIOException - IO exceptionCopyright © 2018 Siemens AG. All rights reserved.