com.objsys.asn1j.runtime
Class Asn1MessageBufferBase

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

public class Asn1MessageBufferBase
extends java.lang.Object

Base class for encode and decode message buffers/streams.


Field Summary
protected  Asn1Context context
           
protected  short mTypeCode
           
 
Constructor Summary
Asn1MessageBufferBase()
           
 
Method Summary
 Asn1Context getContext()
          Return the context object associated with this buffer.
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.
 void setTypeCode(short code)
          This method will sets the internal type code to the given value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mTypeCode

protected short mTypeCode

context

protected Asn1Context context
Constructor Detail

Asn1MessageBufferBase

public Asn1MessageBufferBase()
Method Detail

getContext

public Asn1Context getContext()
Return the context object associated with this buffer.


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

setTypeCode

public final void setTypeCode(short code)
This method will sets the internal type code to the given value. This is a code describing the last type parsed by the decoder.

Parameters:
code - Type code (codes are defined in Asn1Type.java). The codes correspond to the UNIVERSAL tag ID values for the built-in types.

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 containing 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