com.objsys.asn1j.runtime
Class Asn1PerEncodeTraceHandler

java.lang.Object
  extended by com.objsys.asn1j.runtime.Asn1PerTraceHandler
      extended by com.objsys.asn1j.runtime.Asn1PerEncodeTraceHandler

public class Asn1PerEncodeTraceHandler
extends Asn1PerTraceHandler

This is a utility class for handling the collection and printing of PER bit field trace information. An object of the class is present within both the Asn1PerEncodeBuffer and Asn1PerDecodeBuffer classes. It is accessed using the 'getTraceHandler' method from within objects of these classes.


Field Summary
 
Fields inherited from class com.objsys.asn1j.runtime.Asn1PerTraceHandler
mBitFieldList
 
Constructor Summary
Asn1PerEncodeTraceHandler(Asn1PerEncodeBuffer messageBuffer)
          This constructor initializes internal trace handler member variables.
 
Method Summary
 void enable()
          This method is used to turn PER bit tracing on
 void print(java.io.PrintStream out, java.lang.String varName)
          This method prints the trace to the given output stream in a default format.
 void reset()
          This method resets the trace bit field list.
 
Methods inherited from class com.objsys.asn1j.runtime.Asn1PerTraceHandler
addElemName, getBitFieldList, newBitField, removeLastElemName, setBitCount, setBitOffset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Asn1PerEncodeTraceHandler

public Asn1PerEncodeTraceHandler(Asn1PerEncodeBuffer messageBuffer)
This constructor initializes internal trace handler member variables.

Parameters:
messageBuffer - PER encode message buffer object reference
Method Detail

enable

public void enable()
This method is used to turn PER bit tracing on

Specified by:
enable in class Asn1PerTraceHandler

print

public void print(java.io.PrintStream out,
                  java.lang.String varName)
This method prints the trace to the given output stream in a default format.

Specified by:
print in class Asn1PerTraceHandler
Parameters:
out - Print stream to which output is to be written.
varName - Name of the object variable being printed.

reset

public void reset()
This method resets the trace bit field list.

Specified by:
reset in class Asn1PerTraceHandler