public class DeferredProtoInputStream extends DeferredInputStream<com.google.protobuf.MessageLite>
DeferredInputStream backed by a protobuf.| Constructor and Description |
|---|
DeferredProtoInputStream(com.google.protobuf.MessageLite 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.MessageLite |
getDeferred()
Returns the original protobuf message.
|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
close, mark, markSupported, read, reset, skippublic DeferredProtoInputStream(com.google.protobuf.MessageLite message)
@Nullable public com.google.protobuf.MessageLite getDeferred()
getDeferred in class DeferredInputStream<com.google.protobuf.MessageLite>public int flushTo(OutputStream target) throws IOException
DeferredInputStreamflushTo in class DeferredInputStream<com.google.protobuf.MessageLite>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