Package com.beanit.asn1bean.ber.types
Class BerBitString
java.lang.Object
com.beanit.asn1bean.ber.types.BerBitString
- All Implemented Interfaces:
BerType,Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBerBitString(boolean[] value) BerBitString(byte[] code) BerBitString(byte[] value, int numBits) -
Method Summary
Modifier and TypeMethodDescriptionintdecode(InputStream is) intdecode(InputStream is, boolean withTag) intencode(OutputStream reverseOS) intencode(OutputStream reverseOS, boolean withTag) boolean[]toString()
-
Field Details
-
tag
-
value
public byte[] value -
numBits
public int numBits
-
-
Constructor Details
-
BerBitString
public BerBitString() -
BerBitString
public BerBitString(byte[] value, int numBits) -
BerBitString
public BerBitString(boolean[] value) -
BerBitString
public BerBitString(byte[] code)
-
-
Method Details
-
getValueAsBooleans
public boolean[] getValueAsBooleans() -
encode
- Specified by:
encodein interfaceBerType- Throws:
IOException
-
encode
- Throws:
IOException
-
decode
- Specified by:
decodein interfaceBerType- Throws:
IOException
-
decode
- Throws:
IOException
-
toString
-