public class UIDGenerator
extends java.lang.Object
Constructor and Description |
---|
UIDGenerator() |
public static java.lang.String generate(java.lang.String prefix, boolean useMacAddress)
prefix
- organizational prefix optionally including a spatial identifier.
The prefix should follow dicom UID formatting rules and cannot
exceed 31 bytes including the trailing '.'useMacAddress
- when set to true the method will incorporate the MAC
address of the primary ethernet card in order to
ensure spatial uniqueness in the generated UID.java.lang.IllegalArgumentException
- when the prefix is in the wrong format or exceeds 31 bytes.public static void main(java.lang.String[] args)
args
- String[]