private final class ConnectionManager.Outbound.Input extends InputStream
| Modifier and Type | Field and Description |
|---|---|
private OutboundRequestHandle |
handle
The handle, or null if readResponseData has been called.
|
private InputStream |
in
The underlying input stream from the outbound request.
|
| Constructor and Description |
|---|
Input(OutboundRequestHandle handle) |
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Call readFirst, then pass through.
|
void |
close()
pass-through
|
int |
read()
Call readFirst, then pass through.
|
int |
read(byte[] b,
int off,
int len)
Call readFirst, then pass through.
|
private void |
readFirst()
Calls readResponseData on the connection, exactly once.
|
long |
skip(long n)
Call readFirst, then pass through.
|
mark, markSupported, read, resetprivate final InputStream in
private OutboundRequestHandle handle
Input(OutboundRequestHandle handle)
private void readFirst()
throws IOException
IOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.