Class AbstractProtoStreamWriter

    • Constructor Detail

      • AbstractProtoStreamWriter

        protected AbstractProtoStreamWriter​(org.infinispan.protostream.ProtobufTagMarshaller.WriteContext context)
    • Method Detail

      • getWriter

        public org.infinispan.protostream.TagWriter getWriter()
        Specified by:
        getWriter in interface org.infinispan.protostream.ProtobufTagMarshaller.WriteContext
      • writeTag

        public void writeTag​(int number,
                             org.infinispan.protostream.descriptors.WireType wireType)
                      throws IOException
        Specified by:
        writeTag in interface org.infinispan.protostream.RawProtoStreamWriter
        Specified by:
        writeTag in interface org.infinispan.protostream.TagWriter
        Throws:
        IOException
      • writeVarint32

        public void writeVarint32​(int value)
                           throws IOException
        Specified by:
        writeVarint32 in interface org.infinispan.protostream.RawProtoStreamWriter
        Specified by:
        writeVarint32 in interface org.infinispan.protostream.TagWriter
        Throws:
        IOException
      • writeVarint64

        public void writeVarint64​(long value)
                           throws IOException
        Specified by:
        writeVarint64 in interface org.infinispan.protostream.RawProtoStreamWriter
        Specified by:
        writeVarint64 in interface org.infinispan.protostream.TagWriter
        Throws:
        IOException
      • writeRawByte

        @Deprecated
        public void writeRawByte​(byte value)
                          throws IOException
        Deprecated.
        Specified by:
        writeRawByte in interface org.infinispan.protostream.RawProtoStreamWriter
        Throws:
        IOException
      • writeRawBytes

        public void writeRawBytes​(byte[] value,
                                  int offset,
                                  int length)
                           throws IOException
        Specified by:
        writeRawBytes in interface org.infinispan.protostream.RawProtoStreamWriter
        Specified by:
        writeRawBytes in interface org.infinispan.protostream.TagWriter
        Throws:
        IOException
      • writeRawBytes

        @Deprecated
        public void writeRawBytes​(ByteBuffer value)
                           throws IOException
        Deprecated.
        Specified by:
        writeRawBytes in interface org.infinispan.protostream.RawProtoStreamWriter
        Throws:
        IOException
      • writeBool

        public void writeBool​(int index,
                              boolean value)
                       throws IOException
        Specified by:
        writeBool in interface org.infinispan.protostream.RawProtoStreamWriter
        Specified by:
        writeBool in interface org.infinispan.protostream.TagWriter
        Throws:
        IOException
      • writeEnum

        public void writeEnum​(int index,
                              int value)
                       throws IOException
        Specified by:
        writeEnum in interface org.infinispan.protostream.RawProtoStreamWriter
        Specified by:
        writeEnum in interface org.infinispan.protostream.TagWriter
        Throws:
        IOException
      • writeInt32

        @Deprecated
        public void writeInt32​(int index,
                               int value)
                        throws IOException
        Deprecated.
        Description copied from interface: ProtoStreamWriter
        Deprecated to discourage use.
        Specified by:
        writeInt32 in interface ProtoStreamWriter
        Specified by:
        writeInt32 in interface org.infinispan.protostream.RawProtoStreamWriter
        Specified by:
        writeInt32 in interface org.infinispan.protostream.TagWriter
        Throws:
        IOException
      • writeFixed32

        @Deprecated
        public void writeFixed32​(int index,
                                 int value)
                          throws IOException
        Deprecated.
        Description copied from interface: ProtoStreamWriter
        Deprecated to discourage use.
        Specified by:
        writeFixed32 in interface ProtoStreamWriter
        Specified by:
        writeFixed32 in interface org.infinispan.protostream.RawProtoStreamWriter
        Specified by:
        writeFixed32 in interface org.infinispan.protostream.TagWriter
        Throws:
        IOException
      • writeUInt32

        public void writeUInt32​(int index,
                                int value)
                         throws IOException
        Specified by:
        writeUInt32 in interface org.infinispan.protostream.RawProtoStreamWriter
        Specified by:
        writeUInt32 in interface org.infinispan.protostream.TagWriter
        Throws:
        IOException
      • writeSInt32

        public void writeSInt32​(int index,
                                int value)
                         throws IOException
        Specified by:
        writeSInt32 in interface org.infinispan.protostream.RawProtoStreamWriter
        Specified by:
        writeSInt32 in interface org.infinispan.protostream.TagWriter
        Throws:
        IOException
      • writeSFixed32

        public void writeSFixed32​(int index,
                                  int value)
                           throws IOException
        Specified by:
        writeSFixed32 in interface org.infinispan.protostream.RawProtoStreamWriter
        Specified by:
        writeSFixed32 in interface org.infinispan.protostream.TagWriter
        Throws:
        IOException
      • writeInt64

        @Deprecated
        public void writeInt64​(int index,
                               long value)
                        throws IOException
        Deprecated.
        Description copied from interface: ProtoStreamWriter
        Deprecated to discourage use.
        Specified by:
        writeInt64 in interface ProtoStreamWriter
        Specified by:
        writeInt64 in interface org.infinispan.protostream.RawProtoStreamWriter
        Specified by:
        writeInt64 in interface org.infinispan.protostream.TagWriter
        Throws:
        IOException
      • writeFixed64

        @Deprecated
        public void writeFixed64​(int index,
                                 long value)
                          throws IOException
        Deprecated.
        Description copied from interface: ProtoStreamWriter
        Deprecated to discourage use.
        Specified by:
        writeFixed64 in interface ProtoStreamWriter
        Specified by:
        writeFixed64 in interface org.infinispan.protostream.RawProtoStreamWriter
        Specified by:
        writeFixed64 in interface org.infinispan.protostream.TagWriter
        Throws:
        IOException
      • writeUInt64

        public void writeUInt64​(int index,
                                long value)
                         throws IOException
        Specified by:
        writeUInt64 in interface org.infinispan.protostream.RawProtoStreamWriter
        Specified by:
        writeUInt64 in interface org.infinispan.protostream.TagWriter
        Throws:
        IOException
      • writeSInt64

        public void writeSInt64​(int index,
                                long value)
                         throws IOException
        Specified by:
        writeSInt64 in interface org.infinispan.protostream.RawProtoStreamWriter
        Specified by:
        writeSInt64 in interface org.infinispan.protostream.TagWriter
        Throws:
        IOException
      • writeSFixed64

        public void writeSFixed64​(int index,
                                  long value)
                           throws IOException
        Specified by:
        writeSFixed64 in interface org.infinispan.protostream.RawProtoStreamWriter
        Specified by:
        writeSFixed64 in interface org.infinispan.protostream.TagWriter
        Throws:
        IOException
      • writeFloat

        public void writeFloat​(int index,
                               float value)
                        throws IOException
        Specified by:
        writeFloat in interface org.infinispan.protostream.RawProtoStreamWriter
        Specified by:
        writeFloat in interface org.infinispan.protostream.TagWriter
        Throws:
        IOException
      • writeDouble

        public void writeDouble​(int index,
                                double value)
                         throws IOException
        Specified by:
        writeDouble in interface org.infinispan.protostream.RawProtoStreamWriter
        Specified by:
        writeDouble in interface org.infinispan.protostream.TagWriter
        Throws:
        IOException
      • writeBytes

        public void writeBytes​(int index,
                               byte[] value)
                        throws IOException
        Specified by:
        writeBytes in interface org.infinispan.protostream.RawProtoStreamWriter
        Specified by:
        writeBytes in interface org.infinispan.protostream.TagWriter
        Throws:
        IOException
      • writeBytes

        public void writeBytes​(int index,
                               byte[] value,
                               int offset,
                               int length)
                        throws IOException
        Specified by:
        writeBytes in interface org.infinispan.protostream.RawProtoStreamWriter
        Specified by:
        writeBytes in interface org.infinispan.protostream.TagWriter
        Throws:
        IOException
      • writeBytes

        public void writeBytes​(int index,
                               ByteBuffer value)
                        throws IOException
        Specified by:
        writeBytes in interface org.infinispan.protostream.RawProtoStreamWriter
        Specified by:
        writeBytes in interface org.infinispan.protostream.TagWriter
        Throws:
        IOException
      • writeString

        public void writeString​(int index,
                                String value)
                         throws IOException
        Specified by:
        writeString in interface org.infinispan.protostream.RawProtoStreamWriter
        Specified by:
        writeString in interface org.infinispan.protostream.TagWriter
        Throws:
        IOException
      • flush

        public void flush()
                   throws IOException
        Specified by:
        flush in interface org.infinispan.protostream.RawProtoStreamWriter
        Specified by:
        flush in interface org.infinispan.protostream.TagWriter
        Throws:
        IOException