Package io.grpc.internal
Class MessageFramer.OutputStreamAdapter
- java.lang.Object
-
- java.io.OutputStream
-
- io.grpc.internal.MessageFramer.OutputStreamAdapter
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
- Enclosing class:
- MessageFramer
private class MessageFramer.OutputStreamAdapter extends java.io.OutputStream
OutputStream whose write()s are passed to the framer.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
OutputStreamAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write(byte[] b, int off, int len)
void
write(int b)
This is slow, don't call it.
-
-
-
Method Detail
-
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 classjava.io.OutputStream
-
write
public void write(byte[] b, int off, int len)
- Overrides:
write
in classjava.io.OutputStream
-
-