Package net.aifusion.asn
Class BMPStringValue
java.lang.Object
net.aifusion.asn.AsnValue
net.aifusion.asn.BMPStringValue
Class to manage an BMP (Basic Multilingual Plan) String
- Author:
- Sharad Singhal
-
Constructor Summary
ConstructorDescriptionBMPStringValue
(String value) Create a BMP (Basic Multilingual Plan) string (contains two-byte values in the range 0:FFFF). -
Method Summary
Modifier and TypeMethodDescriptionstatic BMPStringValue
create
(byte[] buffer, int blen, int cursor) Create a BMP String from a serialized valueboolean
byte[]
Get the encoded value for this ASN.1 value.getValue()
Get the value of this stringint
hashCode()
toAsnString
(String prefix) Get a (semi) ASN.1 notation for this value.toString()
Methods inherited from class net.aifusion.asn.AsnValue
getLength, getTag, getTagClass, getTagEncoding, getTagNumber, toHex, toHex, toHex, toHex
-
Constructor Details
-
BMPStringValue
Create a BMP (Basic Multilingual Plan) string (contains two-byte values in the range 0:FFFF). Same as UTF-16- Parameters:
value
- - input String
-
-
Method Details
-
getValue
Get the value of this string- Returns:
- - string value
-
create
Create a BMP String from a serialized value- Parameters:
buffer
- - input bufferblen
- - length of input buffercursor
- - starting location for the integer value- Returns:
- - BMPStringValue
-
toAsnString
Description copied from class:AsnValue
Get a (semi) ASN.1 notation for this value.- Overrides:
toAsnString
in classAsnValue
- Parameters:
prefix
- - prefix to add to each line- Returns:
- - string containing the ASN.1 value
-
getEncodedValue
public byte[] getEncodedValue()Description copied from class:AsnValue
Get the encoded value for this ASN.1 value. This method should be implemented by subclasses to provide the encoded ASN.1 value- Specified by:
getEncodedValue
in classAsnValue
- Returns:
- byte [] containing encoded value for this ASN.1 value (including tag, length, content)
-
hashCode
public int hashCode() -
equals
-
toString
-