|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.demac.impl.j2me.process.base.service.webservices.asn1.ASN1AbstractType
org.demac.impl.j2me.process.base.service.webservices.asn1.ASN1AbstractString
org.demac.impl.j2me.process.base.service.webservices.asn1.ASN1UTF8String
public class ASN1UTF8String
This class represents an ASN.1 UTF 8 String as described in ITU-T Recommendation X.680.
Constructor Summary | |
---|---|
ASN1UTF8String()
Creates an instance. |
|
ASN1UTF8String(java.lang.String s)
Creates an instance with the given string value. |
Method Summary | |
---|---|
java.lang.String |
convert(byte[] b)
Converts the given byte array to a string. |
byte[] |
convert(java.lang.String s)
Converts the given string to a byte array. |
int |
convertedLength(java.lang.String s)
Returns the number of bytes required to store the converted string. |
int |
getTag()
Returns the tag of this class. |
Methods inherited from class org.demac.impl.j2me.process.base.service.webservices.asn1.ASN1AbstractString |
---|
decode, encode, equals, getString, getValue, hashCode, setString, toString |
Methods inherited from class org.demac.impl.j2me.process.base.service.webservices.asn1.ASN1AbstractType |
---|
checkConstraints, getConstraint, getTagClass, isExplicit, isOptional, isType, readExternal, setConstraint, setExplicit, setOptional, writeExternal |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.demac.impl.j2me.process.base.service.webservices.asn1.ASN1Type |
---|
checkConstraints, getConstraint, getTagClass, isExplicit, isOptional, isType, setConstraint, setExplicit, setOptional |
Constructor Detail |
---|
public ASN1UTF8String()
public ASN1UTF8String(java.lang.String s)
s
- The string value.Method Detail |
---|
public int getTag()
getTag
in interface ASN1Type
getTag
in class ASN1AbstractType
public java.lang.String convert(byte[] b) throws ASN1Exception
convert
in interface ASN1String
convert
in class ASN1AbstractString
b
- The byte array to convert.
ASN1Exception
- never, only for compliance with the ASN1String
interface.public byte[] convert(java.lang.String s) throws ASN1Exception
convert
in interface ASN1String
convert
in class ASN1AbstractString
s
- The string to convert.
ASN1Exception
- never, only for compliance with the ASN1String
interface.public int convertedLength(java.lang.String s) throws ASN1Exception
convertedLength
in interface ASN1String
convertedLength
in class ASN1AbstractString
s
- The string.
ASN1Exception
- never, only for compliance with the ASN1String
interface.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |