|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
net.jini.jeri.connection.ConnectionManager.Outbound.Input
private final class ConnectionManager.Outbound.Input
Wrapper for the response input stream of an outbound request, used to call readResponseData on the underlying connection before subsequent data is read by higher levels. Note that this class does not support mark/reset.
Field Summary | |
---|---|
private OutboundRequestHandle |
handle
The handle, or null if readResponseData has been called. |
private InputStream |
in
The underlying input stream from the outbound request. |
Constructor Summary | |
---|---|
ConnectionManager.Outbound.Input(OutboundRequestHandle handle)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.io.InputStream |
---|
mark, markSupported, read, reset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final InputStream in
private OutboundRequestHandle handle
Constructor Detail |
---|
ConnectionManager.Outbound.Input(OutboundRequestHandle handle)
Method Detail |
---|
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 class InputStream
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |