| Modifier and Type | Field and Description |
|---|---|
static ByteString |
ByteString.EMPTY
A singleton empty
ByteString. |
| Modifier and Type | Method and Description |
|---|---|
static ByteString |
ByteString.of(byte... data)
Returns a new byte string containing the bytes of
data. |
static ByteString |
ByteString.of(byte[] data,
int offset,
int count)
Returns a new byte string containing the bytes of
data
from offset to offset + count - 1, inclusive. |
static ByteString |
ByteString.of(String data)
Returns a new byte string containing the bytes of
data, interpreted
as Base64. |
static ByteString |
ByteString.read(InputStream in,
int count)
Reads
count bytes from in and returns the result. |
| Modifier and Type | Method and Description |
|---|---|
static <T extends ExtendableMessage<?>> |
Extension.bytesExtending(Class<T> extendedType) |
| Modifier and Type | Method and Description |
|---|---|
void |
Message.Builder.addLengthDelimited(int tag,
ByteString value)
Adds a length delimited value to the unknown field set with the given tag number.
|
Copyright © 2013 Square, Inc.. All Rights Reserved.