- All Superinterfaces:
java.util.EventListener
public interface ReadListener
extends java.util.EventListener
The ReadListener API.
- Author:
- Manfred Riem ([email protected])
-
Method Summary
Modifier and Type Method Description void
onAllDataRead()
Called when all data has been read.void
onDataAvailable()
Called when data is available.void
onError(java.lang.Throwable throwable)
Called when an error occurs.
-
Method Details
-
onAllDataRead
void onAllDataRead() throws java.io.IOExceptionCalled when all data has been read.- Throws:
java.io.IOException
- when an I/O error occurs.
-
onDataAvailable
void onDataAvailable() throws java.io.IOExceptionCalled when data is available.- Throws:
java.io.IOException
- when an I/O error occurs.
-
onError
void onError(java.lang.Throwable throwable)Called when an error occurs.- Parameters:
throwable
- the throwable.
-