com.objsys.asn1j.runtime
Class Asn1MessageBuffer

java.lang.Object
  extended by com.objsys.asn1j.runtime.Asn1MessageBuffer
Direct Known Subclasses:
Asn1DecodeBuffer, Asn1EncodeBuffer

public abstract class Asn1MessageBuffer
extends java.lang.Object

This is the base class for all of the different message buffer types. This includes the BER and PER encode and decode message buffer classes.


Constructor Summary
Asn1MessageBuffer()
           
 
Method Summary
abstract  java.io.InputStream getInputStream()
          This abstract method must be implemented by all of the derived classes.
static void hexDump(java.io.InputStream in)
          This method prints a formatted hex dump of the contents of the the given input stream to the standard output stream.
static void hexDump(java.io.InputStream in, java.io.PrintStream out)
          This method prints a formatted hex dump of the contents of the the given input stream to the given output stream.
 void setKey(byte[] rtkey)
          This method is used with the limited run-time to set a run-time key value generated by the compiler to allow the run-time to operate on the licensed hosts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Asn1MessageBuffer

public Asn1MessageBuffer()
Method Detail

getInputStream

public abstract java.io.InputStream getInputStream()
This abstract method must be implemented by all of the derived classes. It returns an input stream object reference to the message buffer contents (i.e. the encoded data).

Returns:
Input stream object reference

setKey

public void setKey(byte[] rtkey)
This method is used with the limited run-time to set a run-time key value generated by the compiler to allow the run-time to operate on the licensed hosts. This is not used in the unlimited redistribution versions.

Parameters:
rtkey - - Run-time key generated by ASN1C

hexDump

public static void hexDump(java.io.InputStream in,
                           java.io.PrintStream out)
This method prints a formatted hex dump of the contents of the the given input stream to the given output stream.

Parameters:
in - InputStream containg data to be dumped
out - PrintStream to which formatted data is to be written

hexDump

public static void hexDump(java.io.InputStream in)
This method prints a formatted hex dump of the contents of the the given input stream to the standard output stream.

Parameters:
in - InputStream containg data to be dumped