Class MessageFramer.BufferChainOutputStream

java.lang.Object
java.io.OutputStream
io.grpc.internal.MessageFramer.BufferChainOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
Enclosing class:
MessageFramer

private final class MessageFramer.BufferChainOutputStream extends OutputStream
Produce a collection of WritableBuffer instances from the data written to an OutputStream.
  • Field Details

  • Constructor Details

    • BufferChainOutputStream

      private BufferChainOutputStream()
  • Method Details

    • write

      public void write(int b) throws IOException
      This is slow, don't call it. If you care about write overhead, use a BufferedOutputStream. Better yet, you can use your own single byte buffer and call write(byte[], int, int).
      Specified by:
      write in class OutputStream
      Throws:
      IOException
    • write

      public void write(byte[] b, int off, int len)
      Overrides:
      write in class OutputStream
    • readableBytes

      private int readableBytes()