CHAPTER 22: The Package java.io Previous
Previous
Java Language
Java Language
Index
Index
Next
Next

22.30 The Class java.io.InterruptedIOException

22.30.1 bytesTransferred , 22.30.2 InterruptedIOException , 22.30.3 InterruptedIOException

An InterruptedIOException is thrown to indicate that an input or output transfer has been terminated because the thread performing it was interrupted. The field bytesTransferred indicates how many bytes were successfully transferred before the interruption occurred.

public class InterruptedIOException extends IOException {
	public int bytesTransferred = 0;
	public InterruptedIOException();
	public InterruptedIOException(String s);
}


22.30.1 bytesTransferred

public int bytesTransferred = 0;

The number of bytes that had been transferred by the I/O operation before the operation was interrupted.


22.30.2 InterruptedIOException

public InterruptedIOException()

This constructor initializes a newly created InterruptedIOException with null as its error message string.


22.30.3 InterruptedIOException

public InterruptedIOException(String s)

This constructor initializes a newly created InterruptedIOException by saving a reference to the error message string s for later retrieval by the getMessage method (S20.22.3).

Top© 1996 Sun Microsystems, Inc. All rights reserved.