Java Fundamental Classes Reference

Previous Chapter 11
The java.io Package
Next
 

InterruptedIOException

Name

InterruptedIOException

Synopsis

Class Name:

java.io.InterruptedIOException

Superclass:

java.io.IOException

Immediate Subclasses:

None

Interfaces Implemented:

None

Availability:

JDK 1.0 or later

Description

An InterruptedIOException is thrown when an I/O operation is interrupted. This can occur when a thread is waiting for data to become available for a PipedInputStream or PipedReader to read. It can also occur when a thread is waiting for buffer space to become available for a PipedOutputStream or PipedWriter to write to. If the thread's interrupt() method is called while the thread is waiting, the read() or write() method in question throws an InterruptedIOException.

Class Summary

public class java.io.InterruptedIOException extends java.io.IOException {
  // Variables
  public int bytesTransferred;
  // Constructors
  public InterruptedIOException();
  public InterruptedIOException(String s);
}

Variables

bytesTransferred

public int bytesTransferred

Description

The number of bytes that had been transferred before the interruption.

Constructors

InterruptedIOException

public InterruptedIOException()

Description

This constructor creates an InterruptedIOException with no detail message.

public InterruptedIOException(String s)

Parameters

s

The detail message.

Description

This constructor creates an InterruptedIOException with the specified detail message.

Inherited Methods

Method

Inherited From

Method

Inherited From

clone()

Object

equals(Object)

Object

fillInStackTrace()

Throwable

finalize()

Object

getClass()

Object

getLocalizedMessage()

Throwable

getMessage()

Throwable

hashCode()

Object

notify()

Object

notifyAll()

Object

printStackTrace()

Throwable

printStackTrace(PrintStream)

Throwable

printStackTrace(PrintWriter)

Throwable

toString()

Object

wait()

Object

wait(long)

Object

wait(long, int)

Object

   

See Also

Exception, IOException, Throwable


Previous Home Next
InputStreamReader Book Index InvalidClassException

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java