|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.unboundid.util.ByteStringFactory
public final class ByteStringFactory
This class provides a mechanism for creating ByteString
values.
Method Summary | |
---|---|
static ByteString |
create()
Creates a new byte string with no value. |
static ByteString |
create(byte[] value)
Creates a new byte string with the provided value. |
static ByteString |
create(byte[] value,
int offset,
int length)
Creates a new byte string with the provided value. |
static ByteString |
create(java.lang.String value)
Creates a new byte string with the provided value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ByteString create()
public static ByteString create(byte[] value)
value
- The value to use for the byte string.
public static ByteString create(byte[] value, int offset, int length)
value
- The byte array containing the data to use for the value.
It must not be null
.offset
- The position in the array at which the value begins. It
must be greater than or equal to zero and less or equal to
the end of the array.length
- The number of bytes contained in the value. It must be
greater than or equal to zero, and the sum of the offset
and the length must be less than or equal to the end of the
array.
public static ByteString create(java.lang.String value)
value
- The value to use for the byte string.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |