com.objsys.asn1j.runtime
Class Asn1PerBitFieldPrinter
java.lang.Object
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.
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 |
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
Asn1PerBitFieldPrinter
public Asn1PerBitFieldPrinter(Asn1PerMessageBuffer perMessageBuffer,
java.io.InputStream encodedMessage)
throws java.io.IOException
- Constructor
- Parameters:
perMessageBuffer
- PER encode or decode message bufferencodedMessage
- Input stream
- Throws:
java.io.IOException
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 streamvarName
- Variable name. This will be printed before all
fields (for example, .field1, etc.)
- Throws:
java.io.IOException