Package io.grpc.internal
Class MessageFramer.OutputStreamAdapter
java.lang.Object
java.io.OutputStream
io.grpc.internal.MessageFramer.OutputStreamAdapter
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Enclosing class:
MessageFramer
OutputStream whose write()s are passed to the framer.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
close, flush, write
-
Constructor Details
-
OutputStreamAdapter
private OutputStreamAdapter()
-
-
Method Details
-
write
public void write(int b) 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:
write
in classOutputStream
-
write
public void write(byte[] b, int off, int len) - Overrides:
write
in classOutputStream
-