Contents | Prev | Next | Index

22.30 The Class java.io.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 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 public InterruptedIOException()

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

22.30.3 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 (§20.22.3).


Contents | Prev | Next | Index

Java Language Specification (HTML generated by Suzette Pelouch on February 24, 1998)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to [email protected]