Open FileDescriptor for reading and writing with a Channel
1
I have a FileDescriptor and would like to open it for reading and writing using a single channel. I can use streams like so to get one channel for reading, and one channel for writing, but I would prefer a single channel. FileChannel in = new FileInputStream(fd).getChannel(); FileChannel out = new FileOutputStream(fd).getChannel();
java
share | improve this question
asked Jul 26 '16 at 4:28
RedHatter RedHatter
818 1 12 28
...