|
Oracle Internet Directory API Reference 10g(10.1.2) B14083-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ldap.util.NativeGuid
This class represents GUIDs (Globally Unique Identifiers), or object IDs. This is an immutable class.
Field Summary | |
static int |
GUID_BYTE_SIZE number of bytes required for GUID |
static int |
GUID_STRING_SIZE number of bytes required for the string representation of GUID |
static int |
GUID_STRING_SIZE_NEW orig string size |
Constructor Summary | |
NativeGuid() Default constructor. |
|
NativeGuid(byte[] byte_array) Construct a NativeGuid from a byte array |
|
NativeGuid(java.lang.String guid) Construct a NativeGuid from a string |
Method Summary | |
java.lang.Object |
clone() Clones a NativeGuid object |
static java.lang.String |
compactGuidString(java.lang.String s) Converts the larger version of the GUID String to a more compact version. |
boolean |
equals(java.lang.Object o) Compare the NativeGuid in a string format |
static java.lang.String |
expandGuidString(java.lang.String s) Expands the compact version of the GUID String to a more readable version. |
byte[] |
getBytes() return the 'byte' form of the NativeGuid |
int |
hashCode() return the hashcode of this object for hashing purposes |
static void |
main(java.lang.String[] argv) main function used for testing |
static NativeGuid |
newInstance() generates a new NativeGuid |
java.lang.String |
toString() Retrieves the NativeGuid in a string format |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int GUID_BYTE_SIZE
public static final int GUID_STRING_SIZE
public static final int GUID_STRING_SIZE_NEW
Constructor Detail |
public NativeGuid()
public NativeGuid(java.lang.String guid)
guid
- a string representation of a Globally Unique Identifierpublic NativeGuid(byte[] byte_array)
byte_array
- an array of bytes representing a GUID. This constructor will validate the length of the byte array before proceeding.Method Detail |
public static java.lang.String compactGuidString(java.lang.String s)
public static java.lang.String expandGuidString(java.lang.String s)
public static NativeGuid newInstance()
public byte[] getBytes()
public final java.lang.String toString()
public boolean equals(java.lang.Object o)
public int hashCode()
public java.lang.Object clone()
public static void main(java.lang.String[] argv)
|
Oracle Internet Directory API Reference 10g(10.1.2) B14083-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |