確かに！Javaで割り込み可能なI/O操作を使う例を挙げよう：

```
import java.io.*;
import java.net.*;

public class InterruptibleIOExample {
    public static void main(String[] args) throws IOException {
        final int port = 8080;
        final int bufferSize = 1024;

        ServerSocket serverSocket = new ServerSocket(port);
        Socket clientSocket = serverSocket.accept();

        InputStream inputStream = clientSocket.getInputStream();
        byte[] buffer = new byte[bufferSize];

        try {
            while (true) {
                int bytesRead = inputStream.read(buffer);
                if (bytesRead == -1) {
                    break;
                }
                // Process the data read from the input stream
                // ...
            }
        } catch (InterruptedIOException e) {
            // The I/O operation was interrupted
            System.out.println("I/O operation was interrupted.");
        }
    }
}
```

この例では、サーバーはポート8080で着信接続をリッスンします。クライアントが接続すると、サーバはInputStreamを使用してクライアントからデータを読み取ります。InputStreamのread()メソッドは割り込み可能なので、スレッド上でinterrupt()メソッドを呼び出すことで、他のスレッドからサーバーに割り込むことができます。スレッドが read() メソッドでブロックされている間に割り込まれると、InterruptedIOException がスローされ、I/O 操作が割り込まれたことが示されます。
Certainly! Here is an example of using interruptible I/O operations in Java:

import java.io.*;
import java.net.*;

public class InterruptibleIOExample {
    public static void main(String[] args) throws IOException {
        final int port = 8080;
        final int bufferSize = 1024;

        ServerSocket serverSocket = new ServerSocket(port);
        Socket clientSocket = serverSocket.accept();

        InputStream inputStream = clientSocket.getInputStream();
        byte[] buffer = new byte[bufferSize];

        try {
            while (true) {
                int bytesRead = inputStream.read(buffer);
                if (bytesRead == -1) {
                    break;
                }
                // Process the data read from the input stream
                // ...
            }
        } catch (InterruptedIOException e) {
            // The I/O operation was interrupted
            System.out.println("I/O operation was interrupted.");
        }
    }
}

In this example, the server listens for incoming connections on port 8080. When a client connects, the server reads data from the client using an InputStream. The read() method on the InputStream is interruptible, so the server can be interrupted by another thread by calling the interrupt() method on the thread. If the thread is interrupted while blocked on the read() method, an InterruptedIOException will be thrown, indicating that the I/O operation was interrupted.