|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.nds.dirxml.driver.xds.util.GUIDUtil
A collection of eDirectory Globally Unique Identifier (GUID) formatting methods.
Field Summary | |
static char |
DELIMITER_BEGIN
'{' |
static char |
DELIMITER_END
'}' |
static char |
DELIMITER_SECTION
'-' |
Constructor Summary | |
GUIDUtil()
|
Method Summary | |
static String |
binGuidToString(byte[] guid)
Method to change a GUID from a byte array into a cannonical string representation. |
static void |
delimit(String undelimitedGUID,
StringBuffer buffer)
Delimits an undelimited GUID. |
static boolean |
isDelimiter(char c)
Is the passed character a GUID delimeter? |
static boolean |
isValid(String guid)
Determines the validity of the passed GUID. |
static byte[] |
stringGuidtoBin(String guid)
Method to change a GUID from a cannonical string representation into a byte array. |
static String |
stripDelimiters(String guid)
Strips delimiters from a delimited GUID. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final char DELIMITER_BEGIN
public static final char DELIMITER_END
public static final char DELIMITER_SECTION
Constructor Detail |
public GUIDUtil()
Method Detail |
public static boolean isDelimiter(char c)
c
- the characterin question
true
if it is; false
otherwisepublic static String stripDelimiters(String guid)
guid
- a delimited GUID; may be null
public static void delimit(String undelimitedGUID, StringBuffer buffer)
undelimitedGUID
- may be null
buffer
- may be null
; if not null
,
it will contain an equivalent, delimited GUID after this method
is invokedpublic static boolean isValid(String guid)
guid
- may be null
true
if it's valid; false
otherwisepublic static String binGuidToString(byte[] guid)
guid
- must not be null
null
public static byte[] stringGuidtoBin(String guid)
guid
- canonical string representation; must not be
null
null
;
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |