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, skippublic DeferredNanoProtoInputStream(com.google.protobuf.nano.MessageNano message)
public int flushTo(OutputStream target) throws IOException
DeferredInputStreamflushTo in class DeferredInputStream<com.google.protobuf.nano.MessageNano>target - to write to.IOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOException@Nullable public com.google.protobuf.nano.MessageNano getDeferred()
DeferredInputStreamnull is returned.getDeferred in class DeferredInputStream<com.google.protobuf.nano.MessageNano>