Package org.apache.avro.grpc
Class AvroInputStream
java.lang.Object
java.io.InputStream
org.apache.avro.grpc.AvroInputStream
- All Implemented Interfaces:
io.grpc.Drainable
,Closeable
,AutoCloseable
An
InputStream
backed by Avro RPC request/response that can drained
to aOutputStream
.-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
AnOutputStream
that writes to a targetOutputStream
and provides total number of bytes written to it. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ByteArrayInputStream
int
read()
int
read
(byte[] b, int off, int len) Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.grpc.Drainable
drainTo
-
Constructor Details
-
AvroInputStream
public AvroInputStream()
-
-
Method Details
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
getPartial
-