| Constructor and Description |
|---|
FilterOutput(F 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)
Writes a ByteBuffer field.
|
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.
|
public FilterOutput(F output)
public void writeBool(int fieldNumber,
boolean value,
boolean repeated)
throws IOException
OutputwriteBool in interface OutputIOExceptionpublic void writeByteArray(int fieldNumber,
byte[] value,
boolean repeated)
throws IOException
OutputwriteByteArray in interface OutputIOExceptionpublic void writeByteRange(boolean utf8String,
int fieldNumber,
byte[] value,
int offset,
int length,
boolean repeated)
throws IOException
OutputwriteByteRange in interface OutputIOExceptionpublic void writeBytes(int fieldNumber,
ByteString value,
boolean repeated)
throws IOException
OutputwriteBytes in interface OutputIOExceptionpublic void writeDouble(int fieldNumber,
double value,
boolean repeated)
throws IOException
OutputwriteDouble in interface OutputIOExceptionpublic void writeEnum(int fieldNumber,
int value,
boolean repeated)
throws IOException
OutputwriteEnum in interface OutputIOExceptionpublic void writeFixed32(int fieldNumber,
int value,
boolean repeated)
throws IOException
OutputwriteFixed32 in interface OutputIOExceptionpublic void writeFixed64(int fieldNumber,
long value,
boolean repeated)
throws IOException
OutputwriteFixed64 in interface OutputIOExceptionpublic void writeFloat(int fieldNumber,
float value,
boolean repeated)
throws IOException
OutputwriteFloat in interface OutputIOExceptionpublic void writeInt32(int fieldNumber,
int value,
boolean repeated)
throws IOException
OutputwriteInt32 in interface OutputIOExceptionpublic void writeInt64(int fieldNumber,
long value,
boolean repeated)
throws IOException
OutputwriteInt64 in interface OutputIOExceptionpublic <T> void writeObject(int fieldNumber,
T value,
Schema<T> schema,
boolean repeated)
throws IOException
OutputwriteObject in interface OutputIOExceptionpublic void writeSFixed32(int fieldNumber,
int value,
boolean repeated)
throws IOException
OutputwriteSFixed32 in interface OutputIOExceptionpublic void writeSFixed64(int fieldNumber,
long value,
boolean repeated)
throws IOException
OutputwriteSFixed64 in interface OutputIOExceptionpublic void writeSInt32(int fieldNumber,
int value,
boolean repeated)
throws IOException
OutputwriteSInt32 in interface OutputIOExceptionpublic void writeSInt64(int fieldNumber,
long value,
boolean repeated)
throws IOException
OutputwriteSInt64 in interface OutputIOExceptionpublic void writeString(int fieldNumber,
String value,
boolean repeated)
throws IOException
OutputwriteString in interface OutputIOExceptionpublic void writeUInt32(int fieldNumber,
int value,
boolean repeated)
throws IOException
OutputwriteUInt32 in interface OutputIOExceptionpublic void writeUInt64(int fieldNumber,
long value,
boolean repeated)
throws IOException
OutputwriteUInt64 in interface OutputIOExceptionpublic void writeBytes(int fieldNumber,
ByteBuffer value,
boolean repeated)
throws IOException
writeBytes in interface OutputIOExceptionCopyright © 2009–2015. All rights reserved.