public abstract class AbstractProtoStreamWriter extends DefaultProtoStreamOperation implements ProtoStreamWriter, org.infinispan.protostream.ProtobufTagMarshaller.WriteContext
ProtoStreamWriter operations to a TagWriter.ProtoStreamOperation.Context| Modifier | Constructor and Description |
|---|---|
protected |
AbstractProtoStreamWriter(org.infinispan.protostream.ProtobufTagMarshaller.WriteContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
flush() |
org.infinispan.protostream.TagWriter |
getWriter() |
void |
writeBool(int index,
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 |
writeEnum(int index,
int value) |
void |
writeFixed32(int index,
int value)
Deprecated.
|
void |
writeFixed64(int index,
long value)
Deprecated.
|
void |
writeFloat(int index,
float value) |
void |
writeInt32(int index,
int value)
Deprecated.
|
void |
writeInt64(int index,
long value)
Deprecated.
|
void |
writeRawByte(byte value)
Deprecated.
|
void |
writeRawBytes(byte[] value,
int offset,
int length) |
void |
writeRawBytes(ByteBuffer value)
Deprecated.
|
void |
writeSFixed32(int index,
int value) |
void |
writeSFixed64(int index,
long value) |
void |
writeSInt32(int index,
int value) |
void |
writeSInt64(int index,
long value) |
void |
writeString(int index,
String value) |
void |
writeTag(int number,
org.infinispan.protostream.descriptors.WireType wireType) |
void |
writeUInt32(int index,
int value) |
void |
writeUInt64(int index,
long value) |
void |
writeVarint32(int value) |
void |
writeVarint64(long value) |
getParam, getSerializationContext, setParamclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContext, writeAny, writeEnum, writeObject, writeObjectNoTag, writeTagfindMarshaller, getSerializationContextprotected AbstractProtoStreamWriter(org.infinispan.protostream.ProtobufTagMarshaller.WriteContext context)
public org.infinispan.protostream.TagWriter getWriter()
getWriter in interface org.infinispan.protostream.ProtobufTagMarshaller.WriteContextpublic void writeTag(int number,
org.infinispan.protostream.descriptors.WireType wireType)
throws IOException
writeTag in interface org.infinispan.protostream.RawProtoStreamWriterwriteTag in interface org.infinispan.protostream.TagWriterIOExceptionpublic void writeVarint32(int value)
throws IOException
writeVarint32 in interface org.infinispan.protostream.RawProtoStreamWriterwriteVarint32 in interface org.infinispan.protostream.TagWriterIOExceptionpublic void writeVarint64(long value)
throws IOException
writeVarint64 in interface org.infinispan.protostream.RawProtoStreamWriterwriteVarint64 in interface org.infinispan.protostream.TagWriterIOException@Deprecated public void writeRawByte(byte value) throws IOException
writeRawByte in interface org.infinispan.protostream.RawProtoStreamWriterIOExceptionpublic void writeRawBytes(byte[] value,
int offset,
int length)
throws IOException
writeRawBytes in interface org.infinispan.protostream.RawProtoStreamWriterwriteRawBytes in interface org.infinispan.protostream.TagWriterIOException@Deprecated public void writeRawBytes(ByteBuffer value) throws IOException
writeRawBytes in interface org.infinispan.protostream.RawProtoStreamWriterIOExceptionpublic void writeBool(int index,
boolean value)
throws IOException
writeBool in interface org.infinispan.protostream.RawProtoStreamWriterwriteBool in interface org.infinispan.protostream.TagWriterIOExceptionpublic void writeEnum(int index,
int value)
throws IOException
writeEnum in interface org.infinispan.protostream.RawProtoStreamWriterwriteEnum in interface org.infinispan.protostream.TagWriterIOException@Deprecated public void writeInt32(int index, int value) throws IOException
ProtoStreamWriterwriteInt32 in interface org.infinispan.protostream.RawProtoStreamWriterwriteInt32 in interface org.infinispan.protostream.TagWriterwriteInt32 in interface ProtoStreamWriterIOException@Deprecated public void writeFixed32(int index, int value) throws IOException
ProtoStreamWriterwriteFixed32 in interface org.infinispan.protostream.RawProtoStreamWriterwriteFixed32 in interface org.infinispan.protostream.TagWriterwriteFixed32 in interface ProtoStreamWriterIOExceptionpublic void writeUInt32(int index,
int value)
throws IOException
writeUInt32 in interface org.infinispan.protostream.RawProtoStreamWriterwriteUInt32 in interface org.infinispan.protostream.TagWriterIOExceptionpublic void writeSInt32(int index,
int value)
throws IOException
writeSInt32 in interface org.infinispan.protostream.RawProtoStreamWriterwriteSInt32 in interface org.infinispan.protostream.TagWriterIOExceptionpublic void writeSFixed32(int index,
int value)
throws IOException
writeSFixed32 in interface org.infinispan.protostream.RawProtoStreamWriterwriteSFixed32 in interface org.infinispan.protostream.TagWriterIOException@Deprecated public void writeInt64(int index, long value) throws IOException
ProtoStreamWriterwriteInt64 in interface org.infinispan.protostream.RawProtoStreamWriterwriteInt64 in interface org.infinispan.protostream.TagWriterwriteInt64 in interface ProtoStreamWriterIOException@Deprecated public void writeFixed64(int index, long value) throws IOException
ProtoStreamWriterwriteFixed64 in interface org.infinispan.protostream.RawProtoStreamWriterwriteFixed64 in interface org.infinispan.protostream.TagWriterwriteFixed64 in interface ProtoStreamWriterIOExceptionpublic void writeUInt64(int index,
long value)
throws IOException
writeUInt64 in interface org.infinispan.protostream.RawProtoStreamWriterwriteUInt64 in interface org.infinispan.protostream.TagWriterIOExceptionpublic void writeSInt64(int index,
long value)
throws IOException
writeSInt64 in interface org.infinispan.protostream.RawProtoStreamWriterwriteSInt64 in interface org.infinispan.protostream.TagWriterIOExceptionpublic void writeSFixed64(int index,
long value)
throws IOException
writeSFixed64 in interface org.infinispan.protostream.RawProtoStreamWriterwriteSFixed64 in interface org.infinispan.protostream.TagWriterIOExceptionpublic void writeFloat(int index,
float value)
throws IOException
writeFloat in interface org.infinispan.protostream.RawProtoStreamWriterwriteFloat in interface org.infinispan.protostream.TagWriterIOExceptionpublic void writeDouble(int index,
double value)
throws IOException
writeDouble in interface org.infinispan.protostream.RawProtoStreamWriterwriteDouble in interface org.infinispan.protostream.TagWriterIOExceptionpublic void writeBytes(int index,
byte[] value)
throws IOException
writeBytes in interface org.infinispan.protostream.RawProtoStreamWriterwriteBytes in interface org.infinispan.protostream.TagWriterIOExceptionpublic void writeBytes(int index,
byte[] value,
int offset,
int length)
throws IOException
writeBytes in interface org.infinispan.protostream.RawProtoStreamWriterwriteBytes in interface org.infinispan.protostream.TagWriterIOExceptionpublic void writeBytes(int index,
ByteBuffer value)
throws IOException
writeBytes in interface org.infinispan.protostream.RawProtoStreamWriterwriteBytes in interface org.infinispan.protostream.TagWriterIOExceptionpublic void writeString(int index,
String value)
throws IOException
writeString in interface org.infinispan.protostream.RawProtoStreamWriterwriteString in interface org.infinispan.protostream.TagWriterIOExceptionpublic void flush()
throws IOException
flush in interface org.infinispan.protostream.RawProtoStreamWriterflush in interface org.infinispan.protostream.TagWriterIOExceptionCopyright © 2023 JBoss by Red Hat. All rights reserved.