Class DefaultProtoStreamWriter
- java.lang.Object
-
- org.wildfly.clustering.marshalling.protostream.AbstractProtoStreamOperation
-
- org.wildfly.clustering.marshalling.protostream.AbstractProtoStreamWriter
-
- org.wildfly.clustering.marshalling.protostream.DefaultProtoStreamWriter
-
- All Implemented Interfaces:
Function<Object,OptionalInt>,org.infinispan.protostream.ProtobufTagMarshaller.OperationContext,org.infinispan.protostream.ProtobufTagMarshaller.WriteContext,org.infinispan.protostream.RawProtoStreamWriter,org.infinispan.protostream.TagWriter,ProtoStreamOperation,ProtoStreamWriter
public class DefaultProtoStreamWriter extends AbstractProtoStreamWriter implements Function<Object,OptionalInt>
ProtoStreamWriterimplementation that writes to aTagWriterImpl.- Author:
- Paul Ferraro
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.wildfly.clustering.marshalling.protostream.ProtoStreamOperation
ProtoStreamOperation.Context
-
-
Constructor Summary
Constructors Constructor Description DefaultProtoStreamWriter(org.infinispan.protostream.ProtobufTagMarshaller.WriteContext context)Creates a default ProtoStream writer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OptionalIntapply(Object value)ProtoStreamOperation.ContextgetContext()Returns the context of this operationvoidwriteObjectNoTag(Object value)Writes the specified object of a specific type.-
Methods inherited from class org.wildfly.clustering.marshalling.protostream.AbstractProtoStreamWriter
depth, flush, getWriter, writeAnyNoTag, writeBool, writeBytes, writeBytes, writeBytes, writeDouble, writeEnum, writeFixed32, writeFixed64, writeFloat, writeInt32, writeInt64, writeRawByte, writeRawBytes, writeRawBytes, writeSFixed32, writeSFixed64, writeSInt32, writeSInt64, writeString, writeTag, writeUInt32, writeUInt64, writeVarint32, writeVarint64
-
Methods inherited from class org.wildfly.clustering.marshalling.protostream.AbstractProtoStreamOperation
getParam, getSerializationContext, setParam
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.protostream.ProtobufTagMarshaller.OperationContext
getParam, getSerializationContext, setParam
-
Methods inherited from interface org.wildfly.clustering.marshalling.protostream.ProtoStreamOperation
findMarshaller, getSerializationContext
-
Methods inherited from interface org.wildfly.clustering.marshalling.protostream.ProtoStreamWriter
writeAny, writeEnum, writeObject, writeTag
-
-
-
-
Method Detail
-
getContext
public ProtoStreamOperation.Context getContext()
Description copied from interface:ProtoStreamOperationReturns the context of this operation- Specified by:
getContextin interfaceProtoStreamOperation- Overrides:
getContextin classAbstractProtoStreamWriter- Returns:
- the operation context
-
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
-
apply
public OptionalInt apply(Object value)
- Specified by:
applyin interfaceFunction<Object,OptionalInt>
-
-