equal
deleted
inserted
replaced
25 |
25 |
26 package java.io; |
26 package java.io; |
27 |
27 |
28 /** |
28 /** |
29 * Signals that an I/O operation has been interrupted. An |
29 * Signals that an I/O operation has been interrupted. An |
30 * <code>InterruptedIOException</code> is thrown to indicate that an |
30 * {@code InterruptedIOException} is thrown to indicate that an |
31 * input or output transfer has been terminated because the thread |
31 * input or output transfer has been terminated because the thread |
32 * performing it was interrupted. The field {@link #bytesTransferred} |
32 * performing it was interrupted. The field {@link #bytesTransferred} |
33 * indicates how many bytes were successfully transferred before |
33 * indicates how many bytes were successfully transferred before |
34 * the interruption occurred. |
34 * the interruption occurred. |
35 * |
35 * |
43 class InterruptedIOException extends IOException { |
43 class InterruptedIOException extends IOException { |
44 @java.io.Serial |
44 @java.io.Serial |
45 private static final long serialVersionUID = 4020568460727500567L; |
45 private static final long serialVersionUID = 4020568460727500567L; |
46 |
46 |
47 /** |
47 /** |
48 * Constructs an <code>InterruptedIOException</code> with |
48 * Constructs an {@code InterruptedIOException} with |
49 * <code>null</code> as its error detail message. |
49 * {@code null} as its error detail message. |
50 */ |
50 */ |
51 public InterruptedIOException() { |
51 public InterruptedIOException() { |
52 super(); |
52 super(); |
53 } |
53 } |
54 |
54 |
55 /** |
55 /** |
56 * Constructs an <code>InterruptedIOException</code> with the |
56 * Constructs an {@code InterruptedIOException} with the |
57 * specified detail message. The string <code>s</code> can be |
57 * specified detail message. The string {@code s} can be |
58 * retrieved later by the |
58 * retrieved later by the |
59 * <code>{@link java.lang.Throwable#getMessage}</code> |
59 * <code>{@link java.lang.Throwable#getMessage}</code> |
60 * method of class <code>java.lang.Throwable</code>. |
60 * method of class {@code java.lang.Throwable}. |
61 * |
61 * |
62 * @param s the detail message. |
62 * @param s the detail message. |
63 */ |
63 */ |
64 public InterruptedIOException(String s) { |
64 public InterruptedIOException(String s) { |
65 super(s); |
65 super(s); |