public interface ByteSource
ByteSource wraps a byte array and provides additional encoding operations. Most users will find the
DefaultByteSourceCreator class sufficient to construct ByteSource instances.| Modifier and Type | Interface and Description |
|---|---|
static class |
ByteSource.CreatorInitializer |
| Modifier and Type | Field and Description |
|---|---|
static ByteSourceCreator |
creator |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes()
Returns the wrapped byte array.
|
boolean |
isEmpty()
Returns
true if the underlying wrapped byte array is null or empty (zero length), false
otherwise. |
String |
toBase64()
Returns the Base 64-formatted String representation of the
underlying wrapped byte array.
|
String |
toHex()
Returns the Hex-formatted String representation of the
underlying wrapped byte array.
|
static final ByteSourceCreator creator
byte[] getBytes()
String toHex()
String toBase64()
boolean isEmpty()
true if the underlying wrapped byte array is null or empty (zero length), false
otherwise.true if the underlying wrapped byte array is null or empty (zero length), false
otherwise.Copyright © 2014–2018. All rights reserved.