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
Nested ClassesModifier and TypeClassDescriptionprotected static classAnOutputStreamthat writes to a targetOutputStreamand provides total number of bytes written to it. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ByteArrayInputStreamintread()intread(byte[] b, int off, int len) Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.grpc.Drainable
drainTo
-
Constructor Details
-
AvroInputStream
public AvroInputStream()
-
-
Method Details
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
getPartial
-