org.opends.server.types
Class ByteStringFactory

java.lang.Object
  extended by org.opends.server.types.ByteStringFactory

@PublicAPI(stability=UNCOMMITTED,
           mayInstantiate=false,
           mayExtend=false,
           mayInvoke=true)
public final class ByteStringFactory
extends java.lang.Object

This class provides static factory methods for creating ByteString objects.


Constructor Summary
ByteStringFactory()
           
 
Method Summary
static ByteString create()
          Creates a new ByteString object with no value.
static ByteString create(byte[] value)
          Creates a new ByteString object for the provided byte array value.
static ByteString create(java.lang.String value)
          Creates a new ByteString object for the provided string value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteStringFactory

public ByteStringFactory()
Method Detail

create

public static ByteString create()
Creates a new ByteString object with no value.

Returns:
A new ByteString object with no value.

create

public static ByteString create(byte[] value)
Creates a new ByteString object for the provided byte array value.

Parameters:
value - The value to use to create the ByteString object.
Returns:
A new ByteString object with the specified value.

create

public static ByteString create(java.lang.String value)
Creates a new ByteString object for the provided string value.

Parameters:
value - The value to use to create the ByteString object.
Returns:
A new ByteString object with the specified value.