|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.ldap.codec.util.LdapString
Decodes a LdapString, and checks that the character set used comply the ISO 10646 encoded following the UTF-8 algorithm (RFC 2044, RFC 2279)
Field Summary | |
protected byte[] |
bytes
The internal bytes representation of the LdapString |
static byte[] |
EMPTY_BYTES
A null LdapString |
static LdapString |
EMPTY_STRING
A null LdapString |
protected java.lang.String |
string
The inner String containing the LdapString |
Constructor Summary | |
LdapString()
Construct an empty LdapString |
|
LdapString(byte[] bytes)
Transform a byte array to a String. |
Method Summary | |
byte[] |
getBytes()
Get the content of the LdapString, as a byte array; |
int |
getNbBytes()
Get the size of the UTF-8 encoded string |
java.lang.String |
getString()
Get the LdapString as a String |
java.lang.String |
toString()
Return the string representation of a LdapString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final transient LdapString EMPTY_STRING
public static final transient byte[] EMPTY_BYTES
protected java.lang.String string
protected byte[] bytes
Constructor Detail |
public LdapString()
public LdapString(byte[] bytes) throws LdapStringEncodingException
bytes
- The byte buffer that contains the LDAPSTRING
LdapStringEncodingException
- If the byte array is not a UTF-8 encoded ISO-10646 (Unicode)
compatible String.Method Detail |
public java.lang.String getString()
public byte[] getBytes()
public int getNbBytes()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |