| java.lang.Object org.apache.harmony.jndi.provider.ldap.asn1.Utils
Utils | public class Utils (Code) | | |
CODING_CHARSET | final public static String CODING_CHARSET(Code) | | |
conjoinSequence | public static ASN1Sequence conjoinSequence(ASN1Sequence first, ASN1Sequence second)(Code) | | conjoin two ASN1Sequence type as new one
Parameters: first - first ASN1Sequence type Parameters: second - secod ASN1Sequence type a new joined ASN1Sequence type |
getBytes | public static byte[] getBytes(Object obj)(Code) | | Encodes obj into a sequence of bytes using UTF-8 charset.
Parameters: obj - object to be encoded UTF-8 byte[] |
getCharArray | public static char[] getCharArray(Object obj)(Code) | | Convert obj to char[] . If obj is byte[],
then using UTF-8 charset. when obj is null ,
zero length char array would be returned.
Parameters: obj - object to be covert UTF-8 char[] |
getString | public static String getString(Object obj)(Code) | | Convert obj to String . If obj is byte[],
then using UTF-8 charset. when obj is null ,
empty String would be returned.
Parameters: obj - object to be covert UTF-8 String |
|
|