com.objsys.asn1j.runtime
Class Asn1PerBitField

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

public class Asn1PerBitField
extends java.lang.Object

This class is used to store information on an individual bit field within a PER message. The information can be used to print a bit trace of the components of a message. It is used in conjunction with the Asn1PerBitFieldList class to map all bits in a message.


Constructor Summary
Asn1PerBitField(java.lang.String name, int bitOffset, int bitCount)
          This constructor initializes all of the variables used to track the bit fields.
 
Method Summary
 int getBitCount()
          This method returns the number of bits in the bit field.
 int getBitOffset()
          This method returns the offset to the bit field in the buffer.
 java.lang.String getName()
          This method returns the name assigned to the bit field.
 void setBitCount(int value)
          This method sets the count of bits in the bit field.
 void setBitCountAndOffset(int count, int offset)
          This method sets the count of bits in the bit field and the offset to the bit field in the message buffer.
 void setBitOffset(int value)
          This method sets the offset to the bit field in the message buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Asn1PerBitField

public Asn1PerBitField(java.lang.String name,
                       int bitOffset,
                       int bitCount)
This constructor initializes all of the variables used to track the bit fields.

Parameters:
name - Name of the bit field.
bitOffset - Offset within buffer to the bit field
bitCount - Number of bits in the bit field
Method Detail

getBitCount

public int getBitCount()
This method returns the number of bits in the bit field.


getBitOffset

public int getBitOffset()
This method returns the offset to the bit field in the buffer.


getName

public java.lang.String getName()
This method returns the name assigned to the bit field.


setBitCount

public void setBitCount(int value)
This method sets the count of bits in the bit field.


setBitCountAndOffset

public void setBitCountAndOffset(int count,
                                 int offset)
This method sets the count of bits in the bit field and the offset to the bit field in the message buffer.


setBitOffset

public void setBitOffset(int value)
This method sets the offset to the bit field in the message buffer.