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 |
---|
ConnectionManager.Outbound.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, reset
private final InputStream in
private OutboundRequestHandle handle
ConnectionManager.Outbound.Input(OutboundRequestHandle handle)
private void readFirst() throws IOException
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 long skip(long n) throws IOException
skip
in class InputStream
IOException
public int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.