This interface defines methods to allow an InputStream or Reader to notify the developer
when and how much data is ready to be read without blocking.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isFinished()
Returns: |
| public boolean | |
| public void | notifyAvailable(final ReadHandler
the handler)ReadHandler to notify.
Notify the specified |
| public void | notifyAvailable(final ReadHandler
the handler, final int ReadHandler to notify.the least number of bytes that must be available before the size)ReadHandler is invoked.
Notify the specified |
| public int |
| isFinished | back to summary |
|---|---|
public boolean isFinished()
| |
| isReady | back to summary |
|---|---|
public boolean isReady()
| |
| notifyAvailable | back to summary |
|---|---|
| public void notifyAvailable(final ReadHandler handler)
Notify the specified Invoking this method is equivalent to calling: notifyAvailable(handler, 1).
| |
| notifyAvailable | back to summary |
|---|---|
| public void notifyAvailable(final ReadHandler handler, final int size)
Notify the specified
| |
| readyData | back to summary |
|---|---|
public int readyData()
| |