public abstract class InputEntityStream extends InputStream
Constructor and Description |
---|
InputEntityStream(Notifiable notifiable,
InputStream inboundStream)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
available, close, mark, markSupported, read, read, read, reset, skip
public InputEntityStream(Notifiable notifiable, InputStream inboundStream)
notifiable
- The notifiable connection.inboundStream
- The inbound stream.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.Copyright © 2005–2013. All rights reserved.