- java.lang.Object
 -  
      
- java.lang.Throwable
 -  
        
- java.lang.Exception
 -  
          
- java.io.IOException
 -  
            
- java.io.InterruptedIOException
 
 
 
 
 
-  
       
- 实现的所有接口
 -  
         
Serializable 
- 已知直接子类:
 -  
         
SocketTimeoutException 
public class InterruptedIOException extends IOException
表示I / O操作已中断。 抛出InterruptedIOException表示输入或输出传输已终止,因为执行它的线程已中断。 字段bytesTransferred指示在中断发生之前成功传输了多少字节。- 从以下版本开始:
 - 1.0
 - 另请参见:
 -  
         
InputStream,OutputStream,Thread.interrupt(), Serialized Form 
 
-  
        
       
-  
             
字段汇总
字段 变量和类型 字段 描述 intbytesTransferred报告在中断之前作为I / O操作的一部分传输了多少字节。 
-  
             
构造方法摘要
构造方法 构造器 描述 InterruptedIOException()构造一个InterruptedIOException其中包含null作为其错误详细消息。InterruptedIOException(String s)使用指定的详细消息构造一个InterruptedIOException。 
-  
             
方法摘要
 
 -  
             
 
-  
        
       
-  
             
构造方法详细信息
-  
InterruptedIOException
public InterruptedIOException()
构造一个InterruptedIOException其中包含null作为其错误详细消息。 
-  
InterruptedIOException
public InterruptedIOException(String s)
使用指定的详细消息构造一个InterruptedIOException。s可以通过类java.lang.Throwable的方法检索字符串Throwable.getMessage()java.lang.Throwable。- 参数
 -  
              
s- 详细信息。 
 
 -  
 
 -