加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090319094409/http://developer.android.com:80/reference/java/io/InterruptedIOException.html
public class

InterruptedIOException

extends IOException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.io.IOException
         ↳ java.io.InterruptedIOException
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

This IO exception is thrown when a program reading or writing to a stream is interrupted. This is also thrown when a socket timeout occurs before the request has completed.

Summary

Fields
public int bytesTransferred The number of bytes transferred before the IO interrupt occurred.
Public Constructors
InterruptedIOException()
Constructs a new instance of this class with its walkback filled in.
InterruptedIOException(String detailMessage)
Constructs a new instance of this class with its walkback and message filled in.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Fields

public int bytesTransferred

The number of bytes transferred before the IO interrupt occurred. The default is 0 but the value may be filled in by the caller of the constructor.

Public Constructors

public InterruptedIOException ()

Constructs a new instance of this class with its walkback filled in.

public InterruptedIOException (String detailMessage)

Constructs a new instance of this class with its walkback and message filled in.

Parameters
detailMessage The detail message for the exception.