| Modifier and Type | Field and Description |
|---|---|
static ByteString |
ByteString.EMPTY
Empty ByteString.
|
| Modifier and Type | Method and Description |
|---|---|
static ByteString |
ByteString.bytesDefaultValue(java.lang.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(java.lang.String text,
java.lang.String charsetName)
Encodes
text into a sequence of bytes using the named charset
and returns the result as a ByteString. |
static ByteString |
ByteString.copyFromUtf8(java.lang.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 |
Output.writeBytes(int fieldNumber,
ByteString value,
boolean repeated)
Writes a ByteString(wraps byte array) field.
|
void |
FilterOutput.writeBytes(int fieldNumber,
ByteString value,
boolean repeated) |
static void |
ByteString.writeTo(java.io.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(java.io.OutputStream out,
ByteString bs)
Writes the bytes to the
OutputStream. |
Copyright © 2009-2017. All Rights Reserved.