Asn1XerEncoder Interface Reference
Public Member Functions | |
void | EncodeEmptyElement (System.String elemName) |
void | EncodeEndElement (System.String elemName) |
void | EncodeNamedValue (System.String valueName, System.String elemName) |
void | EncodeRealValue (double valueName, System.String elemName) |
void | EncodeStartElement (System.String elemName) |
Properties | |
int | State [get, set] |
Detailed Description
This is a base interface for encoding of ASN.1 messages as specified in the XML Encoding Rules (XER) as specified in the ITU-T X.693 standard. It is implemented by both the Asn1XerEncodeBuffer and Asn1XerOutputStream.
Member Function Documentation
void EncodeEmptyElement | ( | System.String | elemName | ) |
This method encodes an XML empty element tag.
Throws C# Exception, If I/O error occurs.
- Parameters:
-
elemName The name of element.
- Exceptions:
-
Asn1Exception Thrown, if operation is failed.
Implemented in Asn1XerEncodeBuffer, and Asn1XerOutputStream.
void EncodeEndElement | ( | System.String | elemName | ) |
This method encodes an XML start element and attribute tag. start tag will contain the attribute name and value
Throws C# Exception, If I/O error occurs.
- Parameters:
-
elemName The name of element.
- Exceptions:
-
Asn1Exception Thrown, if operation is failed.
Implemented in Asn1XerEncodeBuffer, and Asn1XerOutputStream.
void EncodeNamedValue | ( | System.String | valueName, | |
System.String | elemName | |||
) |
This method encodes an XML named value (with start and end tags).
Throws C# Exception, If I/O error occurs.
- Parameters:
-
valueName The name of value. elemName The name of element.
- Exceptions:
-
Asn1Exception Thrown, if operation is failed.
Implemented in Asn1XerEncodeBuffer, and Asn1XerOutputStream.
void EncodeRealValue | ( | double | valueName, | |
System.String | elemName | |||
) |
This method encodes an XML REAL (double) value (with start and end tags).
Throws C# Exception, If I/O error occurs.
- Parameters:
-
valueName The name of value. elemName The name of element. If null, then start and end tags won't be encoded.
- Exceptions:
-
Asn1Exception Thrown, if operation is failed.
Implemented in Asn1XerEncodeBuffer, and Asn1XerOutputStream.
void EncodeStartElement | ( | System.String | elemName | ) |
This method encodes an XML start element tag.
Throws C# Exception, If I/O error occurs.
- Parameters:
-
elemName The name of element.
- Exceptions:
-
Asn1Exception Thrown, if operation is failed.
Implemented in Asn1XerEncodeBuffer, and Asn1XerOutputStream.
Property Documentation
int State [get, set] |
This method gets and sets the state of the buffer.
Value:
Buffer Stat
Implemented in Asn1XerEncodeBuffer, and Asn1XerOutputStream.