|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectschemajic.model.ASN1Value
schemajic.model.ASN1BitString
public class ASN1BitString
Models the abstract concept of the value of ASN.1
type BIT STRING.
Type BIT STRING is a simple builtin type whose
distinguished values are an ordered sequence of zero or more
bits, with each bit having a value of zero or one.
Universal class tag assignment is UNIVERSAL 3.
XML ASN.1 type name is BIT_STRING.
| Constructor Summary | |
|---|---|
ASN1BitString()
Constructor for ASN1BitString. |
|
ASN1BitString(byte[] bytes)
Constructor for ASN1BitString
with initialization parameter value. |
|
| Method Summary | |
|---|---|
java.lang.Object |
accept(ValueVisitor visitor,
java.lang.Object object)
Accepts a visit from the ValueVisitor |
boolean |
bitIsSet(int index)
Determines whether or not a bit in a string of bits is set to 1. |
Type |
getAsn1Type()
Returns an ASN.1 BIT STRING type. |
byte[] |
getByteArray()
Returns the current set of bits. |
int |
getSignificantBits()
Gets the number of significant bits in a value of ASN.1 type BIT STRING. |
void |
setBit(int index)
Sets a bit in the cuurent bits to zero. |
void |
setByteArray(byte[] bytes,
int significant)
Sets the current sets of bits and significant from the provided byte and integer values. |
void |
setSignificantBits(int bits)
Updates the current significant bits. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ASN1BitString()
ASN1BitString.
public ASN1BitString(byte[] bytes)
ASN1BitString
with initialization parameter value.
| Method Detail |
|---|
public java.lang.Object accept(ValueVisitor visitor,
java.lang.Object object)
throws VisitorException
visit from the ValueVisitor
accept in class ASN1Valuevisitor - the function applicator (mapper), which knows how to
process the given object type and apply appropriate operations to
the elements of this type of objectobject - an object to be visited
VisitorExceptionpublic boolean bitIsSet(int index)
index - bit location in a string of bits
boolean true or falsepublic byte[] getByteArray()
public void setByteArray(byte[] bytes,
int significant)
bytes - set of bits to setsignificant - set of significant bitspublic int getSignificantBits()
BIT STRING.
public void setBit(int index)
index - position of bit in octetpublic void setSignificantBits(int bits)
bits - value to become the current significant bitspublic Type getAsn1Type()
BIT STRING type.
getAsn1Type in class ASN1Value
|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||