com.objsys.asn1j.runtime
Class Asn1Value

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

public class Asn1Value
extends java.lang.Object

This class provides methods for parsing and formatting text in ASN.1 value notation.


Constructor Summary
Asn1Value()
           
 
Method Summary
static byte[] parseString(java.lang.String value)
          This overloaded version of the parseString method sets the numbits holder value to null.
static byte[] parseString(java.lang.String value, IntHolder numbits)
          This static method parses the given ASN.1 value text (either a binary or hex data string) and returns the value in a binary byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Asn1Value

public Asn1Value()
Method Detail

parseString

public static byte[] parseString(java.lang.String value,
                                 IntHolder numbits)
                          throws Asn1ValueParseException
This static method parses the given ASN.1 value text (either a binary or hex data string) and returns the value in a binary byte array. The number of bits is also returned. Examples of valid value formats are as follows: Binary string: '11010010111001'B Hex string: '0fa56920014abc'H Char string: 'abcdefg'

Parameters:
value - The ASN.1 value specification text
numbits - Holder to receive number of bits in string
Throws:
Asn1ValueParseException

parseString

public static byte[] parseString(java.lang.String value)
                          throws Asn1ValueParseException
This overloaded version of the parseString method sets the numbits holder value to null.

Parameters:
value - The ASN.1 value specification text
Throws:
Asn1ValueParseException