public interface ProtoStreamWriter extends ProtoStreamOperation, org.infinispan.protostream.TagWriter
TagWriter with the additional ability to write an arbitrary embedded object.ProtoStreamOperation.Context| Modifier and Type | Method and Description |
|---|---|
default ProtoStreamOperation.Context |
getContext() |
default void |
writeAny(int index,
Object value)
Writes the specified object of an abitrary type using the specified index.
|
default <E extends Enum<E>> |
writeEnum(int index,
E value)
Writes the specified enum field using the specified index.
|
void |
writeFixed32(int index,
int value)
Deprecated.
Use
TagWriter.writeSFixed32(int, int) instead. |
void |
writeFixed64(int index,
long value)
Deprecated.
Use
#writeSFixed64(int, int) instead. |
void |
writeInt32(int index,
int value)
Deprecated.
Use
TagWriter.writeUInt32(int, int) or TagWriter.writeSInt32(int, int) |
void |
writeInt64(int index,
long value)
Deprecated.
Use
#writeUInt64(int, int) or #writeSInt64(int, int) |
default void |
writeObject(int index,
Object value)
Writes the specified object of a specific type using the specified index.
|
void |
writeObjectNoTag(Object value)
Writes the specified object.
|
void |
writeTag(int index,
int wireType)
Deprecated.
Use
TagWriter.writeTag(int, WireType) instead. |
findMarshaller, getSerializationContextflush, writeBool, writeBytes, writeBytes, writeBytes, writeDouble, writeEnum, writeFloat, writeRawBytes, writeSFixed32, writeSFixed64, writeSInt32, writeSInt64, writeString, writeTag, writeUInt32, writeUInt64, writeVarint32, writeVarint64default ProtoStreamOperation.Context getContext()
default void writeAny(int index,
Object value)
throws IOException
ProtoStreamReader.readAny().index - a field indexvalue - a value to be writtenIOException - if no marshaller is associated with the type of the specified object, or if the marshaller fails to write the specified objectdefault void writeObject(int index,
Object value)
throws IOException
ProtoStreamReader.readObject(Class).index - a field indexvalue - a value to be writtenIOException - if no marshaller is associated with the type of the specified object, or if the marshaller fails to write the specified objectvoid writeObjectNoTag(Object value) throws IOException
TagWriter.writeTag(int, org.infinispan.protostream.descriptors.WireType).value - a value to be writtenIOException - if no marshaller is associated with the type of the specified object, or if the marshaller fails to write the specified objectdefault <E extends Enum<E>> void writeEnum(int index, E value) throws IOException
ProtoStreamReader.readEnum(Class).index - a field indexvalue - an enum to be writtenIOException - if no marshaller is associated with the type of the specified object, or if the marshaller fails to write the specified object@Deprecated void writeTag(int index, int wireType) throws IOException
TagWriter.writeTag(int, WireType) instead.writeTag in interface org.infinispan.protostream.RawProtoStreamWriterwriteTag in interface org.infinispan.protostream.TagWriterIOException@Deprecated void writeInt32(int index, int value) throws IOException
TagWriter.writeUInt32(int, int) or TagWriter.writeSInt32(int, int)writeInt32 in interface org.infinispan.protostream.RawProtoStreamWriterwriteInt32 in interface org.infinispan.protostream.TagWriterIOException@Deprecated void writeInt64(int index, long value) throws IOException
#writeUInt64(int, int) or #writeSInt64(int, int)writeInt64 in interface org.infinispan.protostream.RawProtoStreamWriterwriteInt64 in interface org.infinispan.protostream.TagWriterIOException@Deprecated void writeFixed32(int index, int value) throws IOException
TagWriter.writeSFixed32(int, int) instead.writeFixed32 in interface org.infinispan.protostream.RawProtoStreamWriterwriteFixed32 in interface org.infinispan.protostream.TagWriterIOException@Deprecated void writeFixed64(int index, long value) throws IOException
#writeSFixed64(int, int) instead.writeFixed64 in interface org.infinispan.protostream.RawProtoStreamWriterwriteFixed64 in interface org.infinispan.protostream.TagWriterIOExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.