RFR: 8233451: (fs) Files.newInputStream() cannot be used with character special files
Archie Cobbs
acobbs at openjdk.org
Tue Oct 15 15:21:11 UTC 2024
On Tue, 15 Oct 2024 15:13:06 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> FileChannel implements SeekableByteChannel. You'll see exactly the same thing if you use FileChannel.open to open a special file.
Ah... thanks. Also (for example) `FileInputStream.getChannel()` returns a `FileChannel`, so we're stuck with it.
OK so this is an "original sin" situation which we can't fix here. Thanks for the clarification.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/21508#issuecomment-2414264717
More information about the nio-dev
mailing list