public abstract class Asn1String extends Asn1Simple<String>
Asn1Type.EncodingTypebodyLength, outerEncodeable| Constructor and Description |
|---|
Asn1String(UniversalTag universalTag) |
Asn1String(UniversalTag tagNo,
String value) |
| Modifier and Type | Method and Description |
|---|---|
static char[] |
asCharArray(byte[] bytes)
Do a simple conversion of an array of 8 bit characters into a string.
|
protected int |
encodingBodyLength() |
static String |
fromByteArray(byte[] bytes)
Convert an array of 8 bit characters into a string.
|
static String |
fromUTF8ByteArray(byte[] bytes) |
static String[] |
split(String input,
char delimiter) |
static byte[] |
toByteArray(char[] chars) |
static byte[] |
toByteArray(String string) |
protected void |
toBytes() |
static String |
toLowerCase(String string)
A locale independent version of toLowerCase.
|
static String |
toUpperCase(String string)
A locale independent version of toUpperCase.
|
static byte[] |
toUTF8ByteArray(char[] string) |
static void |
toUTF8ByteArray(char[] string,
OutputStream sOut) |
static byte[] |
toUTF8ByteArray(String string) |
protected void |
toValue() |
createSimple, createSimple, decodeBody, encodeBody, encodeBody, getBytes, isDefinitiveLength, isSimple, isSimple, isSimple, setBytes, toStringgetValue, setValuedecode, decode, decode, encode, encode, encodingHeaderLength, encodingLength, getBodyLength, getHeaderLength, isBER, isCER, isDER, isImplicit, isPrimitive, resetBodyLength, taggedDecode, taggedDecode, taggedDecode, taggedEncode, taggedEncode, taggedEncodingLength, useBER, useCER, useDefinitiveLength, useDER, useImplicit, usePrimitiveisAppSpecific, isCollection, isContextSpecific, isEOC, isNull, isSimple, isTagSpecific, isUniversal, simpleInfo, tag, tagFlags, tagNopublic Asn1String(UniversalTag universalTag)
public Asn1String(UniversalTag tagNo, String value)
protected void toBytes()
toBytes in class Asn1Simple<String>protected int encodingBodyLength()
encodingBodyLength in class Asn1Simple<String>protected void toValue()
throws IOException
toValue in class Asn1Simple<String>IOExceptionpublic static String fromUTF8ByteArray(byte[] bytes)
public static byte[] toUTF8ByteArray(String string)
public static byte[] toUTF8ByteArray(char[] string)
public static void toUTF8ByteArray(char[] string,
OutputStream sOut)
throws IOException
IOExceptionpublic static String toUpperCase(String string)
string - input to be convertedpublic static String toLowerCase(String string)
string - input to be convertedpublic static byte[] toByteArray(char[] chars)
public static byte[] toByteArray(String string)
public static String fromByteArray(byte[] bytes)
bytes - 8 bit characters.public static char[] asCharArray(byte[] bytes)
bytes - 8 bit characters.Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.