Package io.grpc.internal
Class MessageFramer.BufferChainOutputStream
java.lang.Object
java.io.OutputStream
io.grpc.internal.MessageFramer.BufferChainOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Enclosing class:
MessageFramer
Produce a collection of
WritableBuffer instances from the data written to an
OutputStream.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
close, flush, write
-
Field Details
-
bufferList
-
current
-
-
Constructor Details
-
BufferChainOutputStream
private BufferChainOutputStream()
-
-
Method Details
-
write
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 callwrite(byte[], int, int).- Specified by:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) - Overrides:
writein classOutputStream
-
readableBytes
private int readableBytes()
-