@PublicAPI(stability=VOLATILE)

Package org.opends.server.util

Contains implementations for various Directory Server utility classes and methods which may be used throughout the server but do not necessarily fit in elsewhere. Notable utility classes include:
  • StaticUtils.java -- a set of static methods that may be called to perform all kinds of useful operations on data (e.g., get a stack trace from an exception, or convert the contents of a byte array to a readable form).
  • Base64.java -- provides a mechanism for performing base64 encoding and decoding.
  • DynamicConstants.java -- a set of constants that are actually generated automatically at build time and reflect information about the time and conditions under which the server was built.
  • TimeThread.java -- provides a thread that will periodically retrieve the current time and format it in several common methods in an attempt to minimize the need to have multiple calls to System.currentTimeMillis() or new Date() whenever the time is needed. This thread updates internal variables several times each second, which should be sufficient for cases in which high-resolution timing is not required.