SimpleAsynchronousFileChannelImpl implRead() and implWrite() fail for named pipes

Jeffrey Shaw shawjef3 at gmail.com
Fri Nov 15 11:08:31 PST 2013


Hello,
I want to perform asynchronous reads and writes on named pipes in a
non-Windows environment. Named pipes are not seekable.
sun.nio.ch.IOUtil.read() and write() appear to have special behavior
defined for when position = -1 that does not involve seeking.
Unfortunately, sun.nio.ch.SimpleAsynchronousFileChannelImpl readImpl() and
writeImpl() both throw exceptions if position < -1, even though position =
-1 is both allowed by the IOUtil functions and required for use with named
pipes.

Is this a bug I or someone else can file?

I haven't checked WindowsAsynchronousFileChannelImpl for the same problem.

Thanks,
Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20131115/02349c06/attachment.html 


More information about the nio-dev mailing list