public abstract class InputEntityStream
extends java.io.InputStream
Connection
instance and
an input stream.Constructor and Description |
---|
InputEntityStream(Notifiable notifiable,
java.io.InputStream inboundStream)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected java.io.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.
|
public InputEntityStream(Notifiable notifiable, java.io.InputStream inboundStream)
notifiable
- The notifiable connection.inboundStream
- The inbound stream.protected java.io.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.Copyright © 2005-2012. All Rights Reserved.