RFR: 8233451: (fs) Files.newInputStream() cannot be used with character special files

Alan Bateman alanb at openjdk.org
Tue Oct 15 05:42:09 UTC 2024


On Mon, 14 Oct 2024 23:30:06 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Add `isOther` and `available` methods to `FileChannelImpl` and the interfaces to native code and use these in `ChannelInputStream` to work around cases where a wrapped `FileChannelImpl` is not really seekable.

Overall the approach is good, except for the Windows implementation of "available" that will need re-work. For ChannelInputStream.isOther then it's effective a stable field, we can do some improvements there.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/21508#issuecomment-2412941018


More information about the nio-dev mailing list