Class CodedOutputStream.OutputStreamEncoder

    • Field Detail

      • out

        private java.io.OutputStream out
    • Constructor Detail

      • OutputStreamEncoder

        OutputStreamEncoder​(java.io.OutputStream out)
    • Method Detail

      • reset

        void reset​(java.io.OutputStream out)
      • writeByteArrayNoTag

        void writeByteArrayNoTag​(byte[] value,
                                 int offset,
                                 int length)
                          throws java.io.IOException
        Description copied from class: CodedOutputStream
        Write a bytes field to the stream.
        Specified by:
        writeByteArrayNoTag in class CodedOutputStream
        Throws:
        java.io.IOException
      • writeByteBufferNoTag

        void writeByteBufferNoTag​(java.nio.ByteBuffer value)
                           throws java.io.IOException
        Specified by:
        writeByteBufferNoTag in class CodedOutputStream
        Throws:
        java.io.IOException
      • write

        void write​(java.nio.ByteBuffer value)
            throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        void write​(byte value)
            throws java.io.IOException
        Specified by:
        write in class CodedOutputStream
        Throws:
        java.io.IOException
      • writeInt32NoTag

        void writeInt32NoTag​(int value)
                      throws java.io.IOException
        Description copied from class: CodedOutputStream
        Write an int32 field to the stream.
        Specified by:
        writeInt32NoTag in class CodedOutputStream
        Throws:
        java.io.IOException
      • writeUInt32NoTag

        void writeUInt32NoTag​(int value)
                       throws java.io.IOException
        Description copied from class: CodedOutputStream
        Write a uint32 field to the stream.
        Specified by:
        writeUInt32NoTag in class CodedOutputStream
        Throws:
        java.io.IOException
      • writeFixed32NoTag

        void writeFixed32NoTag​(int value)
                        throws java.io.IOException
        Description copied from class: CodedOutputStream
        Write a fixed32 field to the stream.
        Specified by:
        writeFixed32NoTag in class CodedOutputStream
        Throws:
        java.io.IOException
      • writeUInt64NoTag

        void writeUInt64NoTag​(long value)
                       throws java.io.IOException
        Description copied from class: CodedOutputStream
        Write a uint64 field to the stream.
        Specified by:
        writeUInt64NoTag in class CodedOutputStream
        Throws:
        java.io.IOException
      • writeFixed64NoTag

        void writeFixed64NoTag​(long value)
                        throws java.io.IOException
        Description copied from class: CodedOutputStream
        Write a fixed64 field to the stream.
        Specified by:
        writeFixed64NoTag in class CodedOutputStream
        Throws:
        java.io.IOException
      • flush

        void flush()
            throws java.io.IOException
        Description copied from class: CodedOutputStream
        Flushes the stream and forces any buffered bytes to be written. This does not flush the underlying OutputStream.
        Specified by:
        flush in class CodedOutputStream
        Throws:
        java.io.IOException
      • write

        void write​(byte[] value,
                   int offset,
                   int length)
            throws java.io.IOException
        Specified by:
        write in class CodedOutputStream
        Throws:
        java.io.IOException
      • flushIfNotAvailable

        private void flushIfNotAvailable​(int requiredSize)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • doFlush

        private void doFlush()
                      throws java.io.IOException
        Throws:
        java.io.IOException