Question 1:
Code:
Am I wrong to think at this time even though I am running java SE7 that RandomAccessFile
is the more proficient API for me to use at this time due to how new SeekableByteChannel is? I just noticed
that SeekableByteChannel has very few methods. But, perhaps they are just bunched into fewer methods
that can do what all the RAF one's can.
Questoin 2:
Code:
Just like the READ WRITE enum's from the FileChannel API I need to find how to get r, rw, rws,
and rwd to be instanciated or imported to my class file. I assume there's a interface, or class I use to
do this, but in the future besides coming here for your help how do I find these on my own? Is there a
specific format on how they name them, or do just have to know where it is?
Question 3:
Code:
Lastly, I am under the impression that channels are to path's, and buffers are to documents. S
o if I wanted to add text to the middle of a document without effecting it's other contents I'd use a Buffer correct?
There would be no need for a Channel?