com.objsys.asn1j.runtime
Class Asn1XerUtil

java.lang.Object
  extended by com.objsys.asn1j.runtime.Asn1XerUtil

public class Asn1XerUtil
extends java.lang.Object


Constructor Summary
Asn1XerUtil()
           
 
Method Summary
static void encodeReal(Asn1XerEncoder buffer, double value, java.lang.String elemName)
          This method encodes an ASN.1 real value using the XML encoding rules (XER).
static java.lang.String normalizedRealValueToString(double value, boolean isXer)
          This method will return a string representation of the normalized REAL value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Asn1XerUtil

public Asn1XerUtil()
Method Detail

encodeReal

public static void encodeReal(Asn1XerEncoder buffer,
                              double value,
                              java.lang.String elemName)
                       throws java.io.IOException,
                              Asn1Exception
This method encodes an ASN.1 real value using the XML encoding rules (XER).

Parameters:
buffer - Encode message buffer object
value - Value to be encoded.
elemName - Element name
Throws:
java.io.IOException
Asn1Exception

normalizedRealValueToString

public static java.lang.String normalizedRealValueToString(double value,
                                                           boolean isXer)
This method will return a string representation of the normalized REAL value. The output format is [+|-]X.XXXXE(+|-)XXX. The format is the ASN.1 value format for this type.

Parameters:
value - value to be normalized and stringified.
isXer - true, if this value is being encoded for XER.
Returns:
Stringified representation of the value