com.objsys.asn1j.runtime
Interface Asn1XerEncoder

All Superinterfaces:
Asn1XmlXerEncoder
All Known Implementing Classes:
Asn1XerEncodeBuffer, Asn1XerOutputStream

public interface Asn1XerEncoder
extends Asn1XmlXerEncoder

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.


Field Summary
static int XERDATA
           
static int XEREND
           
static int XERINDENT
           
static int XERINIT
           
static int XERSTART
           
 
Method Summary
 void encodeEmptyElement(java.lang.String elemName)
          This method encodes an XML empty element tag.
 void encodeEndElement(java.lang.String elemName)
          This method encodes an XML end element tag.
 void encodeNamedValue(java.lang.String valueName, java.lang.String elemName)
          This method encodes an XML named value (with start and end tags).
 void encodeRealValue(double valueName, java.lang.String elemName)
          This method encodes an XML REAL (double) value (with start and end tags).
 void encodeStartElement(java.lang.String elemName)
          This method encodes an XML start element tag.
 int getState()
          This method gets the state of the buffer.
 void setState(int stat)
          This method sets the state of the buffer.
 
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

XERINDENT

static final int XERINDENT
See Also:
Constant Field Values

XERINIT

static final int XERINIT
See Also:
Constant Field Values

XERSTART

static final int XERSTART
See Also:
Constant Field Values

XERDATA

static final int XERDATA
See Also:
Constant Field Values

XEREND

static final int XEREND
See Also:
Constant Field Values
Method Detail

encodeStartElement

void encodeStartElement(java.lang.String elemName)
                        throws java.io.IOException,
                               Asn1Exception
This method encodes an XML start element tag.

Parameters:
elemName - The name of element.
Throws:
java.io.IOException - If I/O error occurs.
Asn1Exception - Thrown, if operation is failed.

encodeEndElement

void encodeEndElement(java.lang.String elemName)
                      throws java.io.IOException,
                             Asn1Exception
This method encodes an XML end element tag.

Parameters:
elemName - The name of element.
Throws:
java.io.IOException - If I/O error occurs.
Asn1Exception - Thrown, if operation is failed.

encodeEmptyElement

void encodeEmptyElement(java.lang.String elemName)
                        throws java.io.IOException,
                               Asn1Exception
This method encodes an XML empty element tag.

Parameters:
elemName - The name of element.
Throws:
java.io.IOException - If I/O error occurs.
Asn1Exception - Thrown, if operation is failed.

encodeNamedValue

void encodeNamedValue(java.lang.String valueName,
                      java.lang.String elemName)
                      throws java.io.IOException,
                             Asn1Exception
This method encodes an XML named value (with start and end tags).

Parameters:
valueName - The name of value.
elemName - The name of element.
Throws:
java.io.IOException - If I/O error occurs.
Asn1Exception - Thrown, if operation is failed.

encodeRealValue

void encodeRealValue(double valueName,
                     java.lang.String elemName)
                     throws java.io.IOException,
                            Asn1Exception
This method encodes an XML REAL (double) value (with start and end tags).

Parameters:
valueName - The name of value.
elemName - The name of element. If null, then start and end tags won't be encoded.
Throws:
java.io.IOException - If I/O error occurs.
Asn1Exception - Thrown, if operation is failed.

getState

int getState()
This method gets the state of the buffer.

Returns:
Buffer Stat

setState

void setState(int stat)
This method sets the state of the buffer.

Parameters:
stat - Buffer Stat