public final class ProtostuffOutput extends WriteSession implements Output
WriteSession.FlushHandlerflushHandler, head, nextBufferSize, out, sink, size, tail| Constructor and Description |
|---|
ProtostuffOutput(LinkedBuffer buffer) |
ProtostuffOutput(LinkedBuffer buffer,
OutputStream out) |
ProtostuffOutput(LinkedBuffer buffer,
OutputStream out,
WriteSession.FlushHandler flushHandler,
int nextBufferSize) |
| Modifier and Type | Method and Description |
|---|---|
ProtostuffOutput |
clear()
Resets this output for re-use.
|
void |
writeBool(int fieldNumber,
boolean value,
boolean repeated) |
void |
writeByteArray(int fieldNumber,
byte[] bytes,
boolean repeated) |
void |
writeByteRange(boolean utf8String,
int fieldNumber,
byte[] value,
int offset,
int length,
boolean repeated) |
void |
writeBytes(int fieldNumber,
ByteBuffer value,
boolean repeated)
Writes a ByteBuffer field.
|
void |
writeBytes(int fieldNumber,
ByteString value,
boolean repeated) |
void |
writeDouble(int fieldNumber,
double value,
boolean repeated) |
void |
writeEnum(int fieldNumber,
int number,
boolean repeated) |
void |
writeFixed32(int fieldNumber,
int value,
boolean repeated) |
void |
writeFixed64(int fieldNumber,
long value,
boolean repeated) |
void |
writeFloat(int fieldNumber,
float value,
boolean repeated) |
void |
writeInt32(int fieldNumber,
int value,
boolean repeated) |
void |
writeInt64(int fieldNumber,
long value,
boolean repeated) |
<T> void |
writeObject(int fieldNumber,
T value,
Schema<T> schema,
boolean repeated) |
void |
writeSFixed32(int fieldNumber,
int value,
boolean repeated) |
void |
writeSFixed64(int fieldNumber,
long value,
boolean repeated) |
void |
writeSInt32(int fieldNumber,
int value,
boolean repeated) |
void |
writeSInt64(int fieldNumber,
long value,
boolean repeated) |
void |
writeString(int fieldNumber,
String value,
boolean repeated) |
void |
writeUInt32(int fieldNumber,
int value,
boolean repeated) |
void |
writeUInt64(int fieldNumber,
long value,
boolean repeated) |
flush, flush, flush, getSize, reset, toByteArraypublic ProtostuffOutput(LinkedBuffer buffer)
public ProtostuffOutput(LinkedBuffer buffer, OutputStream out)
public ProtostuffOutput(LinkedBuffer buffer, OutputStream out, WriteSession.FlushHandler flushHandler, int nextBufferSize)
public ProtostuffOutput clear()
clear in class WriteSessionpublic void writeInt32(int fieldNumber,
int value,
boolean repeated)
throws IOException
writeInt32 in interface OutputIOExceptionpublic void writeUInt32(int fieldNumber,
int value,
boolean repeated)
throws IOException
writeUInt32 in interface OutputIOExceptionpublic void writeSInt32(int fieldNumber,
int value,
boolean repeated)
throws IOException
writeSInt32 in interface OutputIOExceptionpublic void writeFixed32(int fieldNumber,
int value,
boolean repeated)
throws IOException
writeFixed32 in interface OutputIOExceptionpublic void writeSFixed32(int fieldNumber,
int value,
boolean repeated)
throws IOException
writeSFixed32 in interface OutputIOExceptionpublic void writeInt64(int fieldNumber,
long value,
boolean repeated)
throws IOException
writeInt64 in interface OutputIOExceptionpublic void writeUInt64(int fieldNumber,
long value,
boolean repeated)
throws IOException
writeUInt64 in interface OutputIOExceptionpublic void writeSInt64(int fieldNumber,
long value,
boolean repeated)
throws IOException
writeSInt64 in interface OutputIOExceptionpublic void writeFixed64(int fieldNumber,
long value,
boolean repeated)
throws IOException
writeFixed64 in interface OutputIOExceptionpublic void writeSFixed64(int fieldNumber,
long value,
boolean repeated)
throws IOException
writeSFixed64 in interface OutputIOExceptionpublic void writeFloat(int fieldNumber,
float value,
boolean repeated)
throws IOException
writeFloat in interface OutputIOExceptionpublic void writeDouble(int fieldNumber,
double value,
boolean repeated)
throws IOException
writeDouble in interface OutputIOExceptionpublic void writeBool(int fieldNumber,
boolean value,
boolean repeated)
throws IOException
writeBool in interface OutputIOExceptionpublic void writeEnum(int fieldNumber,
int number,
boolean repeated)
throws IOException
writeEnum in interface OutputIOExceptionpublic void writeString(int fieldNumber,
String value,
boolean repeated)
throws IOException
writeString in interface OutputIOExceptionpublic void writeBytes(int fieldNumber,
ByteString value,
boolean repeated)
throws IOException
writeBytes in interface OutputIOExceptionpublic void writeByteArray(int fieldNumber,
byte[] bytes,
boolean repeated)
throws IOException
writeByteArray in interface OutputIOExceptionpublic void writeByteRange(boolean utf8String,
int fieldNumber,
byte[] value,
int offset,
int length,
boolean repeated)
throws IOException
writeByteRange in interface OutputIOExceptionpublic <T> void writeObject(int fieldNumber,
T value,
Schema<T> schema,
boolean repeated)
throws IOException
writeObject in interface OutputIOExceptionpublic void writeBytes(int fieldNumber,
ByteBuffer value,
boolean repeated)
throws IOException
writeBytes in interface OutputIOExceptionCopyright © 2009–2015. All rights reserved.