Package fr.gouv.vitam.common.guid
Class GUIDReader
- java.lang.Object
-
- fr.gouv.vitam.common.guid.GUIDReader
-
public final class GUIDReader extends java.lang.Object
GUUID Reader
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GUID
getGUID(byte[] guid)
Get GUID from byte array representationstatic GUID
getGUID(java.lang.String guid)
Get GUID from String representationstatic GUID
getGUIDUnsafe(java.lang.String guid)
Get GUID from String representation
-
-
-
Method Detail
-
getGUID
public static final GUID getGUID(java.lang.String guid) throws InvalidGuidOperationException
Get GUID from String representation- Parameters:
guid
- the String representation of the GUID- Returns:
- the GUID
- Throws:
InvalidGuidOperationException
- if the String is malformed
-
getGUIDUnsafe
public static final GUID getGUIDUnsafe(java.lang.String guid)
Get GUID from String representation- Parameters:
guid
- the String representation of the GUID- Returns:
- the GUID
- Throws:
InvalidGuidOperationException
- if the String is malformed
-
getGUID
public static final GUID getGUID(byte[] guid) throws InvalidGuidOperationException
Get GUID from byte array representation- Parameters:
guid
- the byte array representation of the GUID- Returns:
- the GUID
- Throws:
InvalidGuidOperationException
- if the byte array is malformed
-
-