public abstract class AvroInputStream extends InputStream implements io.grpc.Drainable
InputStream
backed by Avro RPC request/response that can drained
to aOutputStream
.Modifier and Type | Class and Description |
---|---|
protected static class |
AvroInputStream.CountingOutputStream
An
OutputStream that writes to a target OutputStream and
provides total number of bytes written to it. |
Constructor and Description |
---|
AvroInputStream() |
Modifier and Type | Method and Description |
---|---|
protected ByteArrayInputStream |
getPartial() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
available, close, mark, markSupported, read, reset, skip
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public int read() throws IOException
read
in class InputStream
IOException
protected ByteArrayInputStream getPartial()
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.