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, skip
public 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
DeferredInputStream
flushTo
in class DeferredInputStream<com.google.protobuf.MessageLite>
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