|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
org.restlet.engine.http.io.InputEntityStream
public abstract class InputEntityStream
Input stream that synchronizes the state of a Connection
instance and
an input stream.
Constructor Summary | |
---|---|
InputEntityStream(Notifiable notifiable,
InputStream inboundStream)
Constructor. |
Method Summary | |
---|---|
protected InputStream |
getInboundStream()
Returns the inbound stream. |
protected void |
onEndReached()
To be called when the end of the stream is reached. |
protected void |
onError()
To be called when there is an error when handling the stream. |
Methods inherited from class java.io.InputStream |
---|
available, close, mark, markSupported, read, read, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InputEntityStream(Notifiable notifiable, InputStream inboundStream)
notifiable
- The notifiable connection.inboundStream
- The inbound stream.Method Detail |
---|
protected InputStream getInboundStream()
protected void onEndReached()
Connection.setInboundBusy(boolean)
) .
protected void onError()
onEndReached()
and set the state of the connection to
ConnectionState.CLOSING
in order to release this stream.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |