public class Asn1PerBitFieldPrinter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 Asn1BitMessageBuffer |
mPerMessageBuffer |
Constructor and Description |
---|
Asn1PerBitFieldPrinter(Asn1BitMessageBuffer bitMessageBuffer,
java.io.InputStream encodedMessage)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected int mBitMask
protected int mByteIndex
protected int mCurrOctet
protected java.lang.StringBuffer mFormatBuffer
protected int mFmtBitCharIdx
protected int mFmtHexCharIdx
protected int mFmtAscCharIdx
protected java.io.InputStream mEncodedMessage
protected Asn1BitMessageBuffer mPerMessageBuffer
public Asn1PerBitFieldPrinter(Asn1BitMessageBuffer bitMessageBuffer, java.io.InputStream encodedMessage) throws java.io.IOException
bitMessageBuffer
- PER encode or decode message bufferencodedMessage
- Input streamjava.io.IOException
public void print(java.io.PrintStream out, java.lang.String varName) throws java.io.IOException
out
- Print streamvarName
- Variable name. This will be printed before all
fields (for example, <varName>.field1, etc.)java.io.IOException