public class DeferredNanoProtoInputStream extends DeferredInputStream<com.google.protobuf.nano.MessageNano>
DeferredInputStream
backed by a nano proto.Constructor and Description |
---|
DeferredNanoProtoInputStream(com.google.protobuf.nano.MessageNano message) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
int |
flushTo(OutputStream target)
Produce the entire contents of this stream to the specified target.
|
com.google.protobuf.nano.MessageNano |
getDeferred()
Returns the object that backs the stream.
|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
close, mark, markSupported, read, reset, skip
public DeferredNanoProtoInputStream(com.google.protobuf.nano.MessageNano message)
public int flushTo(OutputStream target) throws IOException
DeferredInputStream
flushTo
in class DeferredInputStream<com.google.protobuf.nano.MessageNano>
target
- to write to.IOException
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public int available() throws IOException
available
in class InputStream
IOException
@Nullable public com.google.protobuf.nano.MessageNano getDeferred()
DeferredInputStream
null
is returned.getDeferred
in class DeferredInputStream<com.google.protobuf.nano.MessageNano>