com.objsys.asn1j.runtime
Class Asn1PerBitFieldPrinter

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

public class Asn1PerBitFieldPrinter
extends java.lang.Object

This class is used to obtain a formatted printout of the bit fields that make up a PER encoded message.


Field Summary
protected  int mBitMask
           
protected  int mByteIndex
           
protected  int mCurrOctet
           
protected  java.io.InputStream mEncodedMessage
           
protected  int mFmtAscCharIdx
           
protected  int mFmtBitCharIdx
           
protected  int mFmtHexCharIdx
           
protected  java.lang.StringBuffer mFormatBuffer
           
protected  Asn1PerMessageBuffer mPerMessageBuffer
           
 
Constructor Summary
Asn1PerBitFieldPrinter(Asn1PerMessageBuffer perMessageBuffer, java.io.InputStream encodedMessage)
          Constructor
 
Method Summary
 void print(java.io.PrintStream out, java.lang.String varName)
          This method iterates through and prints all of the bit fields in a PER encoded message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mBitMask

protected int mBitMask

mByteIndex

protected int mByteIndex

mCurrOctet

protected int mCurrOctet

mFormatBuffer

protected java.lang.StringBuffer mFormatBuffer

mFmtBitCharIdx

protected int mFmtBitCharIdx

mFmtHexCharIdx

protected int mFmtHexCharIdx

mFmtAscCharIdx

protected int mFmtAscCharIdx

mEncodedMessage

protected java.io.InputStream mEncodedMessage

mPerMessageBuffer

protected Asn1PerMessageBuffer mPerMessageBuffer
Constructor Detail

Asn1PerBitFieldPrinter

public Asn1PerBitFieldPrinter(Asn1PerMessageBuffer perMessageBuffer,
                              java.io.InputStream encodedMessage)
                       throws java.io.IOException
Constructor

Parameters:
perMessageBuffer - PER encode or decode message buffer
encodedMessage - Input stream
Throws:
java.io.IOException
Method Detail

print

public void print(java.io.PrintStream out,
                  java.lang.String varName)
           throws java.io.IOException
This method iterates through and prints all of the bit fields in a PER encoded message. Bit tracing needs to have been enabled in the buffer via the 'perTraceEnable' method prior to encoding or decoding the message.

Parameters:
out - Print stream
varName - Variable name. This will be printed before all fields (for example, .field1, etc.)
Throws:
java.io.IOException