Class OffsetProtoStreamWriter
- java.lang.Object
-
- org.wildfly.clustering.marshalling.protostream.OffsetProtoStreamWriter
-
- All Implemented Interfaces:
org.infinispan.protostream.RawProtoStreamWriter,org.infinispan.protostream.TagWriter,ProtoStreamOperation,ProtoStreamWriter
public class OffsetProtoStreamWriter extends Object implements ProtoStreamWriter
- Author:
- Paul Ferraro
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.wildfly.clustering.marshalling.protostream.ProtoStreamOperation
ProtoStreamOperation.Context
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <T> FieldSetWriter<T>createFieldSetWriter(Writable<T> writer, int startIndex)voidflush()ProtoStreamOperation.ContextgetContext()Returns the context of this operationorg.infinispan.protostream.ImmutableSerializationContextgetSerializationContext()Returns the serialization context of the associated marshaller.voidwriteAnyNoTag(Object value)Writes the specified object of an arbitrary type.voidwriteBool(int number, boolean value)voidwriteBytes(int number, byte[] value)voidwriteBytes(int number, byte[] value, int offset, int length)voidwriteBytes(int number, ByteBuffer value)voidwriteDouble(int number, double value)voidwriteEnum(int number, int value)voidwriteFixed32(int index, int value)Deprecated.voidwriteFixed64(int index, long value)Deprecated.voidwriteFloat(int number, float value)voidwriteInt32(int index, int value)Deprecated.voidwriteInt64(int index, long value)Deprecated.voidwriteObjectNoTag(Object value)Writes the specified object of a specific type.voidwriteRawByte(byte value)Deprecated.voidwriteRawBytes(byte[] value, int offset, int length)voidwriteRawBytes(ByteBuffer value)Deprecated.voidwriteSFixed32(int number, int value)voidwriteSFixed64(int number, long value)voidwriteSInt32(int number, int value)voidwriteSInt64(int number, long value)voidwriteString(int number, String value)voidwriteTag(int number, org.infinispan.protostream.descriptors.WireType wireType)voidwriteUInt32(int number, int value)voidwriteUInt64(int number, long value)voidwriteVarint32(int value)voidwriteVarint64(long value)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.clustering.marshalling.protostream.ProtoStreamOperation
findMarshaller
-
Methods inherited from interface org.wildfly.clustering.marshalling.protostream.ProtoStreamWriter
writeAny, writeEnum, writeObject, writeTag
-
-
-
-
Method Detail
-
createFieldSetWriter
public <T> FieldSetWriter<T> createFieldSetWriter(Writable<T> writer, int startIndex)
- Specified by:
createFieldSetWriterin interfaceProtoStreamWriter
-
getContext
public ProtoStreamOperation.Context getContext()
Description copied from interface:ProtoStreamOperationReturns the context of this operation- Specified by:
getContextin interfaceProtoStreamOperation- Returns:
- the operation context
-
getSerializationContext
public org.infinispan.protostream.ImmutableSerializationContext getSerializationContext()
Description copied from interface:ProtoStreamOperationReturns the serialization context of the associated marshaller.- Specified by:
getSerializationContextin interfaceProtoStreamOperation- Returns:
- an immutable serialization context
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceorg.infinispan.protostream.RawProtoStreamWriter- Specified by:
flushin interfaceorg.infinispan.protostream.TagWriter- Throws:
IOException
-
writeTag
public void writeTag(int number, org.infinispan.protostream.descriptors.WireType wireType) throws IOException- Specified by:
writeTagin interfaceorg.infinispan.protostream.RawProtoStreamWriter- Specified by:
writeTagin interfaceorg.infinispan.protostream.TagWriter- Throws:
IOException
-
writeVarint32
public void writeVarint32(int value) throws IOException- Specified by:
writeVarint32in interfaceorg.infinispan.protostream.RawProtoStreamWriter- Specified by:
writeVarint32in interfaceorg.infinispan.protostream.TagWriter- Throws:
IOException
-
writeVarint64
public void writeVarint64(long value) throws IOException- Specified by:
writeVarint64in interfaceorg.infinispan.protostream.RawProtoStreamWriter- Specified by:
writeVarint64in interfaceorg.infinispan.protostream.TagWriter- Throws:
IOException
-
writeRawBytes
public void writeRawBytes(byte[] value, int offset, int length) throws IOException- Specified by:
writeRawBytesin interfaceorg.infinispan.protostream.RawProtoStreamWriter- Specified by:
writeRawBytesin interfaceorg.infinispan.protostream.TagWriter- Throws:
IOException
-
writeString
public void writeString(int number, String value) throws IOException- Specified by:
writeStringin interfaceorg.infinispan.protostream.RawProtoStreamWriter- Specified by:
writeStringin interfaceorg.infinispan.protostream.TagWriter- Throws:
IOException
-
writeUInt32
public void writeUInt32(int number, int value) throws IOException- Specified by:
writeUInt32in interfaceorg.infinispan.protostream.RawProtoStreamWriter- Specified by:
writeUInt32in interfaceorg.infinispan.protostream.TagWriter- Throws:
IOException
-
writeSInt32
public void writeSInt32(int number, int value) throws IOException- Specified by:
writeSInt32in interfaceorg.infinispan.protostream.RawProtoStreamWriter- Specified by:
writeSInt32in interfaceorg.infinispan.protostream.TagWriter- Throws:
IOException
-
writeSFixed32
public void writeSFixed32(int number, int value) throws IOException- Specified by:
writeSFixed32in interfaceorg.infinispan.protostream.RawProtoStreamWriter- Specified by:
writeSFixed32in interfaceorg.infinispan.protostream.TagWriter- Throws:
IOException
-
writeUInt64
public void writeUInt64(int number, long value) throws IOException- Specified by:
writeUInt64in interfaceorg.infinispan.protostream.RawProtoStreamWriter- Specified by:
writeUInt64in interfaceorg.infinispan.protostream.TagWriter- Throws:
IOException
-
writeSInt64
public void writeSInt64(int number, long value) throws IOException- Specified by:
writeSInt64in interfaceorg.infinispan.protostream.RawProtoStreamWriter- Specified by:
writeSInt64in interfaceorg.infinispan.protostream.TagWriter- Throws:
IOException
-
writeSFixed64
public void writeSFixed64(int number, long value) throws IOException- Specified by:
writeSFixed64in interfaceorg.infinispan.protostream.RawProtoStreamWriter- Specified by:
writeSFixed64in interfaceorg.infinispan.protostream.TagWriter- Throws:
IOException
-
writeEnum
public void writeEnum(int number, int value) throws IOException- Specified by:
writeEnumin interfaceorg.infinispan.protostream.RawProtoStreamWriter- Specified by:
writeEnumin interfaceorg.infinispan.protostream.TagWriter- Throws:
IOException
-
writeBool
public void writeBool(int number, boolean value) throws IOException- Specified by:
writeBoolin interfaceorg.infinispan.protostream.RawProtoStreamWriter- Specified by:
writeBoolin interfaceorg.infinispan.protostream.TagWriter- Throws:
IOException
-
writeDouble
public void writeDouble(int number, double value) throws IOException- Specified by:
writeDoublein interfaceorg.infinispan.protostream.RawProtoStreamWriter- Specified by:
writeDoublein interfaceorg.infinispan.protostream.TagWriter- Throws:
IOException
-
writeFloat
public void writeFloat(int number, float value) throws IOException- Specified by:
writeFloatin interfaceorg.infinispan.protostream.RawProtoStreamWriter- Specified by:
writeFloatin interfaceorg.infinispan.protostream.TagWriter- Throws:
IOException
-
writeBytes
public void writeBytes(int number, ByteBuffer value) throws IOException- Specified by:
writeBytesin interfaceorg.infinispan.protostream.RawProtoStreamWriter- Specified by:
writeBytesin interfaceorg.infinispan.protostream.TagWriter- Throws:
IOException
-
writeBytes
public void writeBytes(int number, byte[] value) throws IOException- Specified by:
writeBytesin interfaceorg.infinispan.protostream.RawProtoStreamWriter- Specified by:
writeBytesin interfaceorg.infinispan.protostream.TagWriter- Throws:
IOException
-
writeBytes
public void writeBytes(int number, byte[] value, int offset, int length) throws IOException- Specified by:
writeBytesin interfaceorg.infinispan.protostream.RawProtoStreamWriter- Specified by:
writeBytesin interfaceorg.infinispan.protostream.TagWriter- Throws:
IOException
-
writeRawByte
@Deprecated public void writeRawByte(byte value) throws IOException
Deprecated.- Specified by:
writeRawBytein interfaceorg.infinispan.protostream.RawProtoStreamWriter- Throws:
IOException
-
writeRawBytes
@Deprecated public void writeRawBytes(ByteBuffer value) throws IOException
Deprecated.- Specified by:
writeRawBytesin interfaceorg.infinispan.protostream.RawProtoStreamWriter- Throws:
IOException
-
writeAnyNoTag
public void writeAnyNoTag(Object value) throws IOException
Description copied from interface:ProtoStreamWriterWrites the specified object of an arbitrary type. Must be preceded by {TagWriter.writeTag(int, org.infinispan.protostream.descriptors.WireType).- Specified by:
writeAnyNoTagin interfaceProtoStreamWriter- Parameters:
value- a value to be written- Throws:
IOException- if no marshaller is associated with the type of the specified object, or if the marshaller fails to write the specified object
-
writeObjectNoTag
public void writeObjectNoTag(Object value) throws IOException
Description copied from interface:ProtoStreamWriterWrites the specified object of a specific type. Must be preceded by {TagWriter.writeTag(int, org.infinispan.protostream.descriptors.WireType).- Specified by:
writeObjectNoTagin interfaceProtoStreamWriter- Parameters:
value- a value to be written- Throws:
IOException- if no marshaller is associated with the type of the specified object, or if the marshaller fails to write the specified object
-
writeInt32
@Deprecated public void writeInt32(int index, int value) throws IOException
Deprecated.Description copied from interface:ProtoStreamWriterDeprecated to discourage use.- Specified by:
writeInt32in interfaceProtoStreamWriter- Specified by:
writeInt32in interfaceorg.infinispan.protostream.RawProtoStreamWriter- Specified by:
writeInt32in interfaceorg.infinispan.protostream.TagWriter- Throws:
IOException
-
writeInt64
@Deprecated public void writeInt64(int index, long value) throws IOException
Deprecated.Description copied from interface:ProtoStreamWriterDeprecated to discourage use.- Specified by:
writeInt64in interfaceProtoStreamWriter- Specified by:
writeInt64in interfaceorg.infinispan.protostream.RawProtoStreamWriter- Specified by:
writeInt64in interfaceorg.infinispan.protostream.TagWriter- Throws:
IOException
-
writeFixed32
@Deprecated public void writeFixed32(int index, int value) throws IOException
Deprecated.Description copied from interface:ProtoStreamWriterDeprecated to discourage use.- Specified by:
writeFixed32in interfaceProtoStreamWriter- Specified by:
writeFixed32in interfaceorg.infinispan.protostream.RawProtoStreamWriter- Specified by:
writeFixed32in interfaceorg.infinispan.protostream.TagWriter- Throws:
IOException
-
writeFixed64
@Deprecated public void writeFixed64(int index, long value) throws IOException
Deprecated.Description copied from interface:ProtoStreamWriterDeprecated to discourage use.- Specified by:
writeFixed64in interfaceProtoStreamWriter- Specified by:
writeFixed64in interfaceorg.infinispan.protostream.RawProtoStreamWriter- Specified by:
writeFixed64in interfaceorg.infinispan.protostream.TagWriter- Throws:
IOException
-
-