| Modifier and Type | Field and Description |
|---|---|
static ByteString |
ByteString.EMPTY
Empty ByteString.
|
| Modifier and Type | Method and Description |
|---|---|
static ByteString |
ByteString.bytesDefaultValue(String bytes)
Helper called by generated code to construct default values for bytes fields.
|
static ByteString |
ByteString.copyFrom(byte[] bytes)
Copies the given bytes into a
ByteString. |
static ByteString |
ByteString.copyFrom(byte[] bytes,
int offset,
int size)
Copies the given bytes into a
ByteString. |
static ByteString |
ByteString.copyFrom(String text,
String charsetName)
Encodes
text into a sequence of bytes using the named charset and returns the result as a
ByteString. |
static ByteString |
ByteString.copyFromUtf8(String text)
Encodes
text into a sequence of UTF-8 bytes and returns the result as a ByteString. |
ByteString |
FilterInput.readBytes() |
ByteString |
Input.readBytes()
Reads a
ByteString field value. |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
ByteString.equals(ByteString bs,
ByteString other,
boolean checkHash)
Returns true if the contents of both match.
|
void |
FilterOutput.writeBytes(int fieldNumber,
ByteString value,
boolean repeated) |
void |
Output.writeBytes(int fieldNumber,
ByteString value,
boolean repeated)
Writes a ByteString(wraps byte array) field.
|
static void |
ByteString.writeTo(DataOutput out,
ByteString bs)
Writes the bytes to the
DataOutput. |
static void |
ByteString.writeTo(Output output,
ByteString bs,
int fieldNumber,
boolean repeated)
Writes the bytes to the
Output. |
static void |
ByteString.writeTo(OutputStream out,
ByteString bs)
Writes the bytes to the
OutputStream. |
Copyright © 2009–2016. All rights reserved.