public final class RawProtoStreamWriterImpl extends Object implements RawProtoStreamWriter
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(ByteBuffer byteBuffer) |
static RawProtoStreamWriter |
newInstance(OutputStream output) |
static RawProtoStreamWriter |
newInstance(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,
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,
int offset,
int length) |
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,
String value) |
void |
writeTag(int number,
int wireType) |
void |
writeUInt32(int number,
int value) |
void |
writeUInt32NoTag(int value) |
void |
writeUInt64(int number,
long value) |
void |
writeUInt64NoTag(long value) |
public static RawProtoStreamWriter newInstance(OutputStream output)
public static RawProtoStreamWriter newInstance(OutputStream output, int bufferSize)
public static RawProtoStreamWriter newInstance(byte[] flatArray)
public static RawProtoStreamWriter newInstance(byte[] flatArray, int offset, int length)
public static RawProtoStreamWriter newInstance(ByteBuffer byteBuffer)
public com.google.protobuf.CodedOutputStream getDelegate()
public void writeTag(int number, int wireType) throws IOException
writeTag
in interface RawProtoStreamWriter
IOException
public void writeUInt32NoTag(int value) throws IOException
writeUInt32NoTag
in interface RawProtoStreamWriter
IOException
public void writeUInt64NoTag(long value) throws IOException
writeUInt64NoTag
in interface RawProtoStreamWriter
IOException
public void writeString(int number, String value) throws IOException
writeString
in interface RawProtoStreamWriter
IOException
public void writeInt32(int number, int value) throws IOException
writeInt32
in interface RawProtoStreamWriter
IOException
public void writeInt64(int number, long value) throws IOException
writeInt64
in interface RawProtoStreamWriter
IOException
public void writeFixed32(int number, int value) throws IOException
writeFixed32
in interface RawProtoStreamWriter
IOException
public void writeUInt32(int number, int value) throws IOException
writeUInt32
in interface RawProtoStreamWriter
IOException
public void writeSFixed32(int number, int value) throws IOException
writeSFixed32
in interface RawProtoStreamWriter
IOException
public void writeSInt32(int number, int value) throws IOException
writeSInt32
in interface RawProtoStreamWriter
IOException
public void writeEnum(int number, int value) throws IOException
writeEnum
in interface RawProtoStreamWriter
IOException
public void flush() throws IOException
flush
in interface RawProtoStreamWriter
IOException
public void writeBool(int number, boolean value) throws IOException
writeBool
in interface RawProtoStreamWriter
IOException
public void writeDouble(int number, double value) throws IOException
writeDouble
in interface RawProtoStreamWriter
IOException
public void writeFloat(int number, float value) throws IOException
writeFloat
in interface RawProtoStreamWriter
IOException
public void writeBytes(int number, ByteBuffer value) throws IOException
writeBytes
in interface RawProtoStreamWriter
IOException
public void writeBytes(int number, byte[] value) throws IOException
writeBytes
in interface RawProtoStreamWriter
IOException
public void writeBytes(int number, byte[] value, int offset, int length) throws IOException
writeBytes
in interface RawProtoStreamWriter
IOException
public void writeUInt64(int number, long value) throws IOException
writeUInt64
in interface RawProtoStreamWriter
IOException
public void writeFixed64(int number, long value) throws IOException
writeFixed64
in interface RawProtoStreamWriter
IOException
public void writeSFixed64(int number, long value) throws IOException
writeSFixed64
in interface RawProtoStreamWriter
IOException
public void writeSInt64(int number, long value) throws IOException
writeSInt64
in interface RawProtoStreamWriter
IOException
public void writeRawBytes(byte[] value, int offset, int length) throws IOException
writeRawBytes
in interface RawProtoStreamWriter
IOException
Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.