public interface Output
| Modifier and Type | Method and Description |
|---|---|
void |
writeBool(int fieldNumber,
boolean value,
boolean repeated)
Writes a boolean field.
|
void |
writeByteArray(int fieldNumber,
byte[] value,
boolean repeated)
Writes a byte array field.
|
void |
writeByteRange(boolean utf8String,
int fieldNumber,
byte[] value,
int offset,
int length,
boolean repeated)
Writes a binary or a pre-encoded utf8 string.
|
void |
writeBytes(int fieldNumber,
ByteBuffer value,
boolean repeated) |
void |
writeBytes(int fieldNumber,
ByteString value,
boolean repeated)
Writes a ByteString(wraps byte array) field.
|
void |
writeDouble(int fieldNumber,
double value,
boolean repeated)
Writes a double field.
|
void |
writeEnum(int fieldNumber,
int value,
boolean repeated)
Writes a enum(its number) field.
|
void |
writeFixed32(int fieldNumber,
int value,
boolean repeated)
Writes a fixed int(4 bytes) field.
|
void |
writeFixed64(int fieldNumber,
long value,
boolean repeated)
Writes a fixed long(8 bytes) field.
|
void |
writeFloat(int fieldNumber,
float value,
boolean repeated)
Writes a float field.
|
void |
writeInt32(int fieldNumber,
int value,
boolean repeated)
Writes a variable int field.
|
void |
writeInt64(int fieldNumber,
long value,
boolean repeated)
Writes a variable long field.
|
<T> void |
writeObject(int fieldNumber,
T value,
Schema<T> schema,
boolean repeated)
Writes an object(using its schema) field.
|
void |
writeSFixed32(int fieldNumber,
int value,
boolean repeated)
Writes a signed+fixed int(4 bytes) field.
|
void |
writeSFixed64(int fieldNumber,
long value,
boolean repeated)
Writes a signed+fixed long(8 bytes) field.
|
void |
writeSInt32(int fieldNumber,
int value,
boolean repeated)
Writes a signed int field.
|
void |
writeSInt64(int fieldNumber,
long value,
boolean repeated)
Writes a signed long field.
|
void |
writeString(int fieldNumber,
String value,
boolean repeated)
Writes a String field.
|
void |
writeUInt32(int fieldNumber,
int value,
boolean repeated)
Writes an unsigned int field.
|
void |
writeUInt64(int fieldNumber,
long value,
boolean repeated)
Writes an unsigned long field.
|
void writeInt32(int fieldNumber,
int value,
boolean repeated)
throws IOException
IOExceptionvoid writeUInt32(int fieldNumber,
int value,
boolean repeated)
throws IOException
IOExceptionvoid writeSInt32(int fieldNumber,
int value,
boolean repeated)
throws IOException
IOExceptionvoid writeFixed32(int fieldNumber,
int value,
boolean repeated)
throws IOException
IOExceptionvoid writeSFixed32(int fieldNumber,
int value,
boolean repeated)
throws IOException
IOExceptionvoid writeInt64(int fieldNumber,
long value,
boolean repeated)
throws IOException
IOExceptionvoid writeUInt64(int fieldNumber,
long value,
boolean repeated)
throws IOException
IOExceptionvoid writeSInt64(int fieldNumber,
long value,
boolean repeated)
throws IOException
IOExceptionvoid writeFixed64(int fieldNumber,
long value,
boolean repeated)
throws IOException
IOExceptionvoid writeSFixed64(int fieldNumber,
long value,
boolean repeated)
throws IOException
IOExceptionvoid writeFloat(int fieldNumber,
float value,
boolean repeated)
throws IOException
IOExceptionvoid writeDouble(int fieldNumber,
double value,
boolean repeated)
throws IOException
IOExceptionvoid writeBool(int fieldNumber,
boolean value,
boolean repeated)
throws IOException
IOExceptionvoid writeEnum(int fieldNumber,
int value,
boolean repeated)
throws IOException
IOExceptionvoid writeString(int fieldNumber,
String value,
boolean repeated)
throws IOException
IOExceptionvoid writeBytes(int fieldNumber,
ByteString value,
boolean repeated)
throws IOException
IOExceptionvoid writeByteArray(int fieldNumber,
byte[] value,
boolean repeated)
throws IOException
IOExceptionvoid writeByteRange(boolean utf8String,
int fieldNumber,
byte[] value,
int offset,
int length,
boolean repeated)
throws IOException
IOException<T> void writeObject(int fieldNumber,
T value,
Schema<T> schema,
boolean repeated)
throws IOException
IOExceptionvoid writeBytes(int fieldNumber,
ByteBuffer value,
boolean repeated)
throws IOException
IOExceptionCopyright © 2009–2015. All rights reserved.