|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp.bitmeister.asn1.value.BinString
public class BinString
Represents ASN.1 'Binaly string(bString)' item.
An instance of this class represents a 'bString' item.
Constructor Summary | |
---|---|
BinString(boolean... array)
Instantiates a BinString and initialize it with an array of
boolean . |
|
BinString(java.lang.String string)
Instantiates a BinString and initialize it with a String . |
Method Summary | |
---|---|
java.lang.String |
string()
Returns the string value of this bString. |
boolean[] |
toBinArray()
Converts the value of this bString to an array of boolean . |
byte[] |
toByteArray()
Converts the value of this bString to an array of byte . |
java.lang.String |
toString()
Returns a string representation of this item. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BinString(java.lang.String string)
BinString
and initialize it with a String
.
string
- The String
consist of '0's and '1's.public BinString(boolean... array)
BinString
and initialize it with an array of
boolean
.
array
- The array of boolean
.Method Detail |
---|
public java.lang.String string()
string
in interface StringItem
public boolean[] toBinArray()
boolean
.
toBinArray
in interface StringItem
boolean
.public byte[] toByteArray()
byte
.
toByteArray
in interface StringItem
byte
.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |