public final class RawProtoStreamWriterImpl extends java.lang.Object implements RawProtoStreamWriter
| Modifier and Type | Field and Description |
|---|---|
private java.nio.charset.Charset |
charset |
private com.google.protobuf.CodedOutputStream |
delegate |
| Modifier | Constructor and Description |
|---|---|
private |
RawProtoStreamWriterImpl(com.google.protobuf.CodedOutputStream delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
flush() |
com.google.protobuf.CodedOutputStream |
getDelegate() |
static RawProtoStreamWriter |
newInstance(byte[] flatArray) |
static RawProtoStreamWriter |
newInstance(byte[] flatArray,
int offset,
int length) |
static RawProtoStreamWriter |
newInstance(java.nio.ByteBuffer byteBuffer) |
static RawProtoStreamWriter |
newInstance(java.nio.ByteBuffer byteBuffer,
int bufferSize) |
static RawProtoStreamWriter |
newInstance(java.io.OutputStream output) |
static RawProtoStreamWriter |
newInstance(java.io.OutputStream output,
int bufferSize) |
void |
writeBool(int number,
boolean value) |
void |
writeBytes(int number,
byte[] value) |
void |
writeBytes(int number,
byte[] value,
int offset,
int length) |
void |
writeBytes(int number,
java.nio.ByteBuffer value) |
void |
writeDouble(int number,
double value) |
void |
writeEnum(int number,
int value) |
void |
writeFixed32(int number,
int value) |
void |
writeFixed64(int number,
long value) |
void |
writeFloat(int number,
float value) |
void |
writeInt32(int number,
int value) |
void |
writeInt64(int number,
long value) |
void |
writeRawBytes(byte[] value) |
void |
writeRawVarint32(int value) |
void |
writeRawVarint64(long value) |
void |
writeSFixed32(int number,
int value) |
void |
writeSFixed64(int number,
long value) |
void |
writeSInt32(int number,
int value) |
void |
writeSInt64(int number,
long value) |
void |
writeString(int number,
java.lang.String value) |
void |
writeTag(int number,
int wireType) |
void |
writeUInt32(int number,
int value) |
void |
writeUInt64(int number,
long value) |
private final com.google.protobuf.CodedOutputStream delegate
private final java.nio.charset.Charset charset
private RawProtoStreamWriterImpl(com.google.protobuf.CodedOutputStream delegate)
public static RawProtoStreamWriter newInstance(java.io.OutputStream output)
public static RawProtoStreamWriter newInstance(java.io.OutputStream output, int bufferSize)
public static RawProtoStreamWriter newInstance(byte[] flatArray)
public static RawProtoStreamWriter newInstance(byte[] flatArray, int offset, int length)
public static RawProtoStreamWriter newInstance(java.nio.ByteBuffer byteBuffer)
public static RawProtoStreamWriter newInstance(java.nio.ByteBuffer byteBuffer, int bufferSize)
public com.google.protobuf.CodedOutputStream getDelegate()
public void writeTag(int number,
int wireType)
throws java.io.IOException
writeTag in interface RawProtoStreamWriterjava.io.IOExceptionpublic void writeRawVarint32(int value)
throws java.io.IOException
writeRawVarint32 in interface RawProtoStreamWriterjava.io.IOExceptionpublic void writeRawVarint64(long value)
throws java.io.IOException
writeRawVarint64 in interface RawProtoStreamWriterjava.io.IOExceptionpublic void writeString(int number,
java.lang.String value)
throws java.io.IOException
writeString in interface RawProtoStreamWriterjava.io.IOExceptionpublic void writeInt32(int number,
int value)
throws java.io.IOException
writeInt32 in interface RawProtoStreamWriterjava.io.IOExceptionpublic void writeInt64(int number,
long value)
throws java.io.IOException
writeInt64 in interface RawProtoStreamWriterjava.io.IOExceptionpublic void writeFixed32(int number,
int value)
throws java.io.IOException
writeFixed32 in interface RawProtoStreamWriterjava.io.IOExceptionpublic void writeUInt32(int number,
int value)
throws java.io.IOException
writeUInt32 in interface RawProtoStreamWriterjava.io.IOExceptionpublic void writeSFixed32(int number,
int value)
throws java.io.IOException
writeSFixed32 in interface RawProtoStreamWriterjava.io.IOExceptionpublic void writeSInt32(int number,
int value)
throws java.io.IOException
writeSInt32 in interface RawProtoStreamWriterjava.io.IOExceptionpublic void writeEnum(int number,
int value)
throws java.io.IOException
writeEnum in interface RawProtoStreamWriterjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface RawProtoStreamWriterjava.io.IOExceptionpublic void writeBool(int number,
boolean value)
throws java.io.IOException
writeBool in interface RawProtoStreamWriterjava.io.IOExceptionpublic void writeDouble(int number,
double value)
throws java.io.IOException
writeDouble in interface RawProtoStreamWriterjava.io.IOExceptionpublic void writeFloat(int number,
float value)
throws java.io.IOException
writeFloat in interface RawProtoStreamWriterjava.io.IOExceptionpublic void writeBytes(int number,
java.nio.ByteBuffer value)
throws java.io.IOException
writeBytes in interface RawProtoStreamWriterjava.io.IOExceptionpublic void writeBytes(int number,
byte[] value)
throws java.io.IOException
writeBytes in interface RawProtoStreamWriterjava.io.IOExceptionpublic void writeBytes(int number,
byte[] value,
int offset,
int length)
throws java.io.IOException
writeBytes in interface RawProtoStreamWriterjava.io.IOExceptionpublic void writeUInt64(int number,
long value)
throws java.io.IOException
writeUInt64 in interface RawProtoStreamWriterjava.io.IOExceptionpublic void writeFixed64(int number,
long value)
throws java.io.IOException
writeFixed64 in interface RawProtoStreamWriterjava.io.IOExceptionpublic void writeSFixed64(int number,
long value)
throws java.io.IOException
writeSFixed64 in interface RawProtoStreamWriterjava.io.IOExceptionpublic void writeSInt64(int number,
long value)
throws java.io.IOException
writeSInt64 in interface RawProtoStreamWriterjava.io.IOExceptionpublic void writeRawBytes(byte[] value)
throws java.io.IOException
writeRawBytes in interface RawProtoStreamWriterjava.io.IOException