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,
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,
java.lang.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 java.io.IOException
java.io.IOExceptionvoid writeUInt32(int fieldNumber,
int value,
boolean repeated)
throws java.io.IOException
java.io.IOExceptionvoid writeSInt32(int fieldNumber,
int value,
boolean repeated)
throws java.io.IOException
java.io.IOExceptionvoid writeFixed32(int fieldNumber,
int value,
boolean repeated)
throws java.io.IOException
java.io.IOExceptionvoid writeSFixed32(int fieldNumber,
int value,
boolean repeated)
throws java.io.IOException
java.io.IOExceptionvoid writeInt64(int fieldNumber,
long value,
boolean repeated)
throws java.io.IOException
java.io.IOExceptionvoid writeUInt64(int fieldNumber,
long value,
boolean repeated)
throws java.io.IOException
java.io.IOExceptionvoid writeSInt64(int fieldNumber,
long value,
boolean repeated)
throws java.io.IOException
java.io.IOExceptionvoid writeFixed64(int fieldNumber,
long value,
boolean repeated)
throws java.io.IOException
java.io.IOExceptionvoid writeSFixed64(int fieldNumber,
long value,
boolean repeated)
throws java.io.IOException
java.io.IOExceptionvoid writeFloat(int fieldNumber,
float value,
boolean repeated)
throws java.io.IOException
java.io.IOExceptionvoid writeDouble(int fieldNumber,
double value,
boolean repeated)
throws java.io.IOException
java.io.IOExceptionvoid writeBool(int fieldNumber,
boolean value,
boolean repeated)
throws java.io.IOException
java.io.IOExceptionvoid writeEnum(int fieldNumber,
int value,
boolean repeated)
throws java.io.IOException
java.io.IOExceptionvoid writeString(int fieldNumber,
java.lang.String value,
boolean repeated)
throws java.io.IOException
java.io.IOExceptionvoid writeBytes(int fieldNumber,
ByteString value,
boolean repeated)
throws java.io.IOException
java.io.IOExceptionvoid writeByteArray(int fieldNumber,
byte[] value,
boolean repeated)
throws java.io.IOException
java.io.IOExceptionvoid writeByteRange(boolean utf8String,
int fieldNumber,
byte[] value,
int offset,
int length,
boolean repeated)
throws java.io.IOException
java.io.IOException<T> void writeObject(int fieldNumber,
T value,
Schema<T> schema,
boolean repeated)
throws java.io.IOException
java.io.IOExceptionCopyright © 2009-2016. All Rights Reserved.