EofSensorWatcherpublic interface EofSensorWatcher A watcher for {@link EofSensorInputStream EofSensorInputStream}.
Each stream will notify it's watcher at most once. |
Methods Summary |
---|
public boolean | eofDetected(java.io.InputStream wrapped)Indicates that EOF is detected.
| public boolean | streamAbort(java.io.InputStream wrapped)Indicates that the {@link EofSensorInputStream stream} is aborted.
This method will be called only if EOF was not detected
before aborting. Otherwise, {@link #eofDetected eofDetected} is called.
This method will also be invoked when an input operation causes an
IOException to be thrown to make sure the input stream gets shut down.
| public boolean | streamClosed(java.io.InputStream wrapped)Indicates that the {@link EofSensorInputStream stream} is closed.
This method will be called only if EOF was not detected
before closing. Otherwise, {@link #eofDetected eofDetected} is called.
|
|