|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp.bitmeister.asn1.value.HexString
public class HexString
Represents ASN.1 'Hex string(hString)' item.
An instance of this class represents a 'hString' item.
Constructor Summary | |
---|---|
HexString(byte... array)
Instantiates a HexString and initialize it with an array of
byte . |
|
HexString(java.lang.String string)
Instantiates a HexString and initialize it with a String . |
Method Summary | |
---|---|
java.lang.String |
string()
Returns the string value of this hString. |
boolean[] |
toBinArray()
Converts the value of this hString to an array of boolean . |
byte[] |
toByteArray()
Converts the value of this hString 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 HexString(java.lang.String string)
HexString
and initialize it with a String
.
string
- The String
that consist of an arbitrary numbers of
hexadecimal characters.public HexString(byte... array)
HexString
and initialize it with an array of
byte
.
array
- The array of byte
.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 |