public class DefaultProtoStreamWriter extends Object implements ProtoStreamWriter
ProtoStreamWriter implementation that writes to a CodedOutputStream.| Constructor and Description |
|---|
DefaultProtoStreamWriter(org.infinispan.protostream.ImmutableSerializationContext context,
protostream.com.google.protobuf.CodedOutputStream output) |
DefaultProtoStreamWriter(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
flush() |
org.infinispan.protostream.ImmutableSerializationContext |
getSerializationContext() |
void |
writeBool(int index,
boolean value) |
void |
writeBoolNoTag(boolean value) |
void |
writeBytes(int index,
byte[] value) |
void |
writeBytes(int index,
byte[] value,
int offset,
int length) |
void |
writeBytes(int index,
ByteBuffer value) |
void |
writeDouble(int index,
double value) |
void |
writeDoubleNoTag(double value) |
<E extends Enum<E>> |
writeEnum(int index,
E value) |
void |
writeEnum(int index,
int value) |
void |
writeFixed32(int index,
int value) |
void |
writeFixed64(int index,
long value) |
void |
writeFloat(int index,
float value) |
void |
writeFloatNoTag(float value) |
void |
writeInt32(int index,
int value) |
void |
writeInt64(int index,
long value) |
void |
writeObject(int index,
Object value) |
void |
writeObjectNoTag(Object value) |
void |
writeRawByte(byte value) |
void |
writeRawBytes(byte[] value,
int offset,
int length) |
void |
writeSFixed32(int index,
int value) |
void |
writeSFixed64(int index,
long value) |
void |
writeSInt32(int index,
int value) |
void |
writeSInt32NoTag(int value) |
void |
writeSInt64(int index,
long value) |
void |
writeSInt64NoTag(long value) |
void |
writeString(int index,
String value) |
void |
writeStringNoTag(String value) |
void |
writeTag(int index,
int wireType) |
void |
writeUInt32(int index,
int value) |
void |
writeUInt32NoTag(int value) |
void |
writeUInt64(int index,
long value) |
void |
writeUInt64NoTag(long value) |
public DefaultProtoStreamWriter(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer)
public DefaultProtoStreamWriter(org.infinispan.protostream.ImmutableSerializationContext context,
protostream.com.google.protobuf.CodedOutputStream output)
public org.infinispan.protostream.ImmutableSerializationContext getSerializationContext()
getSerializationContext in interface ProtoStreamWriterpublic void writeObject(int index,
Object value)
throws IOException
writeObject in interface ProtoStreamWriterIOExceptionpublic void writeObjectNoTag(Object value) throws IOException
writeObjectNoTag in interface ProtoStreamWriterIOExceptionpublic <E extends Enum<E>> void writeEnum(int index, E value) throws IOException
writeEnum in interface ProtoStreamWriterIOExceptionpublic void writeStringNoTag(String value) throws IOException
writeStringNoTag in interface ProtoStreamWriterIOExceptionpublic void writeBoolNoTag(boolean value)
throws IOException
writeBoolNoTag in interface ProtoStreamWriterIOExceptionpublic void writeSInt32NoTag(int value)
throws IOException
writeSInt32NoTag in interface ProtoStreamWriterIOExceptionpublic void writeSInt64NoTag(long value)
throws IOException
writeSInt64NoTag in interface ProtoStreamWriterIOExceptionpublic void writeFloatNoTag(float value)
throws IOException
writeFloatNoTag in interface ProtoStreamWriterIOExceptionpublic void writeDoubleNoTag(double value)
throws IOException
writeDoubleNoTag in interface ProtoStreamWriterIOExceptionpublic void writeRawByte(byte value)
throws IOException
writeRawByte in interface ProtoStreamWriterIOExceptionpublic void flush()
throws IOException
flush in interface org.infinispan.protostream.RawProtoStreamWriterIOExceptionpublic void writeTag(int index,
int wireType)
throws IOException
writeTag in interface org.infinispan.protostream.RawProtoStreamWriterIOExceptionpublic void writeUInt32NoTag(int value)
throws IOException
writeUInt32NoTag in interface org.infinispan.protostream.RawProtoStreamWriterIOExceptionpublic void writeUInt64NoTag(long value)
throws IOException
writeUInt64NoTag in interface org.infinispan.protostream.RawProtoStreamWriterIOExceptionpublic void writeString(int index,
String value)
throws IOException
writeString in interface org.infinispan.protostream.RawProtoStreamWriterIOExceptionpublic void writeInt32(int index,
int value)
throws IOException
writeInt32 in interface org.infinispan.protostream.RawProtoStreamWriterIOExceptionpublic void writeFixed32(int index,
int value)
throws IOException
writeFixed32 in interface org.infinispan.protostream.RawProtoStreamWriterIOExceptionpublic void writeUInt32(int index,
int value)
throws IOException
writeUInt32 in interface org.infinispan.protostream.RawProtoStreamWriterIOExceptionpublic void writeSFixed32(int index,
int value)
throws IOException
writeSFixed32 in interface org.infinispan.protostream.RawProtoStreamWriterIOExceptionpublic void writeSInt32(int index,
int value)
throws IOException
writeSInt32 in interface org.infinispan.protostream.RawProtoStreamWriterIOExceptionpublic void writeInt64(int index,
long value)
throws IOException
writeInt64 in interface org.infinispan.protostream.RawProtoStreamWriterIOExceptionpublic void writeUInt64(int index,
long value)
throws IOException
writeUInt64 in interface org.infinispan.protostream.RawProtoStreamWriterIOExceptionpublic void writeFixed64(int index,
long value)
throws IOException
writeFixed64 in interface org.infinispan.protostream.RawProtoStreamWriterIOExceptionpublic void writeSFixed64(int index,
long value)
throws IOException
writeSFixed64 in interface org.infinispan.protostream.RawProtoStreamWriterIOExceptionpublic void writeSInt64(int index,
long value)
throws IOException
writeSInt64 in interface org.infinispan.protostream.RawProtoStreamWriterIOExceptionpublic void writeEnum(int index,
int value)
throws IOException
writeEnum in interface org.infinispan.protostream.RawProtoStreamWriterIOExceptionpublic void writeBool(int index,
boolean value)
throws IOException
writeBool in interface org.infinispan.protostream.RawProtoStreamWriterIOExceptionpublic void writeDouble(int index,
double value)
throws IOException
writeDouble in interface org.infinispan.protostream.RawProtoStreamWriterIOExceptionpublic void writeFloat(int index,
float value)
throws IOException
writeFloat in interface org.infinispan.protostream.RawProtoStreamWriterIOExceptionpublic void writeBytes(int index,
ByteBuffer value)
throws IOException
writeBytes in interface org.infinispan.protostream.RawProtoStreamWriterIOExceptionpublic void writeBytes(int index,
byte[] value)
throws IOException
writeBytes in interface org.infinispan.protostream.RawProtoStreamWriterIOExceptionpublic void writeBytes(int index,
byte[] value,
int offset,
int length)
throws IOException
writeBytes in interface org.infinispan.protostream.RawProtoStreamWriterIOExceptionpublic void writeRawBytes(byte[] value,
int offset,
int length)
throws IOException
writeRawBytes in interface org.infinispan.protostream.RawProtoStreamWriterIOExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.