|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@PublicAPI(stability=UNCOMMITTED,
mayInstantiate=false,
mayExtend=false,
mayInvoke=true)
public interface ByteString
This interface defines data type that is backed by a byte array but
may also have a string representation. The preferred way to create
a ByteString object is to use one of the
ByteStringFactory.create methods.
| Method Summary | |
|---|---|
ByteString |
duplicate()
Creates a duplicate of this byte string whose contents can be altered without impacting this byte string. |
void |
setValue(byte[] value)
Sets the value for this byte string. |
void |
setValue(java.lang.String value)
Sets the value for this byte string. |
java.lang.String |
stringValue()
Retrieves the value of this byte string as a string. |
ASN1OctetString |
toASN1OctetString()
Retrieves this byte string as an ASN.1 octet string. |
java.lang.String |
toString()
Retrieves a string representation of this byte string. |
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this byte string to the provided buffer. |
byte[] |
value()
Retrieves the value of this byte string as a byte array. |
| Method Detail |
|---|
byte[] value()
java.lang.String stringValue()
void setValue(byte[] value)
value - The value for this byte string.void setValue(java.lang.String value)
value - The value for this byte string.ASN1OctetString toASN1OctetString()
java.lang.String toString()
toString in class java.lang.Objectvoid toString(java.lang.StringBuilder buffer)
buffer - The buffer to which the information should be
appended.ByteString duplicate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||