|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.asn1.util.Asn1StringUtils
public class Asn1StringUtils
Little helper class.
| Field Summary | |
|---|---|
static byte[] |
EMPTY_BYTES
The empty byte[] |
| Constructor Summary | |
|---|---|
Asn1StringUtils()
|
|
| Method Summary | |
|---|---|
static byte[] |
asciiStringToByte(java.lang.String string)
Thansform a string to an array of ASCII bytes, where the byte array will contain only values in [0, 127]. |
static java.lang.String |
dumpByte(byte octet)
Helper function that dump a byte in hex form |
static java.lang.String |
dumpBytes(byte[] buffer)
Helper function that dump an array of bytes in hex form |
static byte[] |
getBytesUtf8(java.lang.String string)
Return UTF-8 encoded byte[] representation of a String |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte[] EMPTY_BYTES
| Constructor Detail |
|---|
public Asn1StringUtils()
| Method Detail |
|---|
public static java.lang.String dumpByte(byte octet)
octet - The byte to dump
public static java.lang.String dumpBytes(byte[] buffer)
buffer - The bytes array to dump
public static byte[] getBytesUtf8(java.lang.String string)
string - The string to be transformed to a byte array
public static byte[] asciiStringToByte(java.lang.String string)
string - The byte array to transform
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||