Package org.asnlab.asndt.runtime.conv
Class BitSetConverter
java.lang.Object
org.asnlab.asndt.runtime.conv.AsnConverter
org.asnlab.asndt.runtime.conv.BitStringConverter
org.asnlab.asndt.runtime.conv.BitSetConverter
The
BitStringConverter can convert
BitSet to ASN.1 recognized values and vice versa.
Only work in JDK 7.0+-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateObject(byte[] bytes, byte unusedBits) byte[]Return the bytes of the BIT STRING valuebytegetUnusedBits(Object object) Return the unused bits of the BIT STRING valuebytereverseBitOrder(byte b) Methods inherited from class org.asnlab.asndt.runtime.conv.BitStringConverter
getBytes, getUnusedBitsMethods inherited from class org.asnlab.asndt.runtime.conv.AsnConverter
isAnonymous
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
BitSetConverter
public BitSetConverter()
-
-
Method Details
-
createObject
- Specified by:
createObjectin classBitStringConverter
-
getBytes
Return the bytes of the BIT STRING value- Parameters:
object- The BIT STRING value- Returns:
- The bytes of the BIT STRING value
-
getUnusedBits
Return the unused bits of the BIT STRING value- Parameters:
object- The BIT STRING value- Returns:
- The unused bits of the BIT STRING value
-
reverseBitOrder
public byte reverseBitOrder(byte b)
-