|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Asn1XmlEncoder
This is a base interface for encoding of ASN.1 messages as XML as specified in the W3C standard. It is implemented by both the Asn1XmlEncodeBuffer and Asn1XmlOutputStream.
Field Summary | |
---|---|
static int |
XMLDATA
|
static int |
XMLEND
|
static int |
XMLINDENT
|
static int |
XMLINIT
|
static int |
XMLSTART
|
Method Summary | |
---|---|
void |
encodeAttr(java.lang.String qname,
java.lang.String value)
This method encodes an XML attribute value. |
void |
encodeDoubleValue(double valueName,
java.lang.String elemName,
java.lang.String nsPrefix)
This method encodes an XML REAL (double) value (with start and end tags). |
void |
encodeEmptyElement(java.lang.String elemName,
java.lang.String nsPrefix)
This method encodes an XML empty element tag. |
void |
encodeEndElement(java.lang.String elemName,
java.lang.String nsPrefix)
This method encodes an XML end element tag. |
void |
encodeNamedValue(java.lang.String valueName,
java.lang.String elemName,
java.lang.String nsPrefix)
This method encodes an XML named value (with start and end tags). |
void |
encodeStartElement(java.lang.String elemName,
java.lang.String nsPrefix,
boolean terminate)
This method encodes an XML start element and attribute tag. |
void |
encodeXSIAttrs()
This method encodes XSI attributes. |
Asn1XmlEncodeHelper |
getHelper()
This method returns a reference to the internal helper object. |
void |
setIndent(int value)
This method sets the number of spaces per indentation. |
void |
setXSIAttrs(Asn1XmlXSIAttrs value)
This method sets the XSI attributes object to the given value. |
Methods inherited from interface com.objsys.asn1j.runtime.Asn1XmlXerEncoder |
---|
copy, copy, copy, copy, decrLevel, encodeBinStrValue, encodeData, encodeEndDocument, encodeHexStrValue, encodeNamedValueElement, encodeStartDocument, getContext, incrLevel, indent |
Field Detail |
---|
static final int XMLINDENT
static final int XMLINIT
static final int XMLSTART
static final int XMLDATA
static final int XMLEND
Method Detail |
---|
void encodeAttr(java.lang.String qname, java.lang.String value) throws java.io.IOException, Asn1Exception
qname
- Attribute qualified name.value
- Attribute value in string form.
java.io.IOException
Asn1Exception
void encodeStartElement(java.lang.String elemName, java.lang.String nsPrefix, boolean terminate) throws java.io.IOException, Asn1Exception
elemName
- The name of element.nsPrefix
- Element namespace prefix value
java.io.IOException
- If I/O error occurs.
Asn1Exception
- Thrown, if operation is failed.void encodeEndElement(java.lang.String elemName, java.lang.String nsPrefix) throws java.io.IOException, Asn1Exception
elemName
- The name of element.
java.io.IOException
- If I/O error occurs.
Asn1Exception
- Thrown, if operation is failed.void encodeEmptyElement(java.lang.String elemName, java.lang.String nsPrefix) throws java.io.IOException, Asn1Exception
elemName
- The name of element.nsPrefix
- Element namespace prefix value
java.io.IOException
- If I/O error occurs.
Asn1Exception
- Thrown, if operation is failed.void encodeNamedValue(java.lang.String valueName, java.lang.String elemName, java.lang.String nsPrefix) throws java.io.IOException, Asn1Exception
valueName
- The name of value.elemName
- The name of element.nsPrefix
- Element namespace prefix value
java.io.IOException
- If I/O error occurs.
Asn1Exception
- Thrown, if operation is failed.void encodeDoubleValue(double valueName, java.lang.String elemName, java.lang.String nsPrefix) throws java.io.IOException, Asn1Exception
valueName
- The name of value.elemName
- The name of element. If null, then start and endnsPrefix
- Element namespace prefix value
java.io.IOException
- If I/O error occurs.
Asn1Exception
- Thrown, if operation is failed.void encodeXSIAttrs() throws Asn1Exception, java.io.IOException
Asn1Exception
java.io.IOException
Asn1XmlEncodeHelper getHelper()
void setIndent(int value)
value
- Number of spaces per indentation level.void setXSIAttrs(Asn1XmlXSIAttrs value)
value
- XSI attributes object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |