My problem is if the buffer is split, I want to make it contagious. In java, I used FileChannel for this purpose.
Does okio FileHandle have something similar to RandomAccessFile.getchannel() in java?
109 views Asked by nikhil kumar At
1
My problem is if the buffer is split, I want to make it contagious. In java, I used FileChannel for this purpose.
See the FileHandle API, which has
source()andsink()methods to read or write sequentially. If you callsink().buffer()the result implementsWritableByteChannelandsource().buffer()implementsReadableByteChannel.