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 RawProtoStreamWriterIOExceptionpublic void writeUInt32NoTag(int value)
throws IOException
writeUInt32NoTag in interface RawProtoStreamWriterIOExceptionpublic void writeUInt64NoTag(long value)
throws IOException
writeUInt64NoTag in interface RawProtoStreamWriterIOExceptionpublic void writeString(int number,
String value)
throws IOException
writeString in interface RawProtoStreamWriterIOExceptionpublic void writeInt32(int number,
int value)
throws IOException
writeInt32 in interface RawProtoStreamWriterIOExceptionpublic void writeInt64(int number,
long value)
throws IOException
writeInt64 in interface RawProtoStreamWriterIOExceptionpublic void writeFixed32(int number,
int value)
throws IOException
writeFixed32 in interface RawProtoStreamWriterIOExceptionpublic void writeUInt32(int number,
int value)
throws IOException
writeUInt32 in interface RawProtoStreamWriterIOExceptionpublic void writeSFixed32(int number,
int value)
throws IOException
writeSFixed32 in interface RawProtoStreamWriterIOExceptionpublic void writeSInt32(int number,
int value)
throws IOException
writeSInt32 in interface RawProtoStreamWriterIOExceptionpublic void writeEnum(int number,
int value)
throws IOException
writeEnum in interface RawProtoStreamWriterIOExceptionpublic void flush()
throws IOException
flush in interface RawProtoStreamWriterIOExceptionpublic void writeBool(int number,
boolean value)
throws IOException
writeBool in interface RawProtoStreamWriterIOExceptionpublic void writeDouble(int number,
double value)
throws IOException
writeDouble in interface RawProtoStreamWriterIOExceptionpublic void writeFloat(int number,
float value)
throws IOException
writeFloat in interface RawProtoStreamWriterIOExceptionpublic void writeBytes(int number,
ByteBuffer value)
throws IOException
writeBytes in interface RawProtoStreamWriterIOExceptionpublic void writeBytes(int number,
byte[] value)
throws IOException
writeBytes in interface RawProtoStreamWriterIOExceptionpublic void writeBytes(int number,
byte[] value,
int offset,
int length)
throws IOException
writeBytes in interface RawProtoStreamWriterIOExceptionpublic void writeUInt64(int number,
long value)
throws IOException
writeUInt64 in interface RawProtoStreamWriterIOExceptionpublic void writeFixed64(int number,
long value)
throws IOException
writeFixed64 in interface RawProtoStreamWriterIOExceptionpublic void writeSFixed64(int number,
long value)
throws IOException
writeSFixed64 in interface RawProtoStreamWriterIOExceptionpublic void writeSInt64(int number,
long value)
throws IOException
writeSInt64 in interface RawProtoStreamWriterIOExceptionpublic void writeRawBytes(byte[] value,
int offset,
int length)
throws IOException
writeRawBytes in interface RawProtoStreamWriterIOExceptionCopyright © 2020 JBoss, a division of Red Hat. All rights reserved.