repository.grepcode.com$java$root@jdk$openjdk@6-b14
repository.grepcode.com$java$root@jdk$openjdk@6-b14@java$io$InterruptedIOException.java
file
oh
o
[]
Possible Duplicate:
How to terminate a thread blocking on socket IO operation instantly?
I have client run in thread want to read from socket in Java. But while reading, maybe I want to kill the thread. So I interrupt it, but does socket's reading methods throw InterruptedException? I didn't find.
So, how can I nicely ask thread to die while it's blocking on reading socket?
Thanks
What Exception is thrown on connection timeout in HTMLUnit ?
In my application I download several critical files from a server, and I want to write some code that handles the case where the a file download didn't complete for a reason or other ,to retry downloading it at next startup. The function that downloads a file at a time however throws only MalformedURLException and IOException , but if these exceptions are thrown that means that the download di...
Signals that an I/O operation has been interrupted. 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.
Constructs an
InterruptedIOException with
null as its error detail message.
Constructs an
InterruptedIOException with the
specified detail message. The string
s can be
retrieved later by the
java.lang.Throwable.getMessage()
method of class
java.lang.Throwable.
- Parameters:
s the detail message.
Reports how many bytes had been transferred as part of the I/O
operation before it was interrupted.