FileInputStream stream = new FileInputStream(path);
FileOutputStream stream = new FileOutputStream(path);
    private FileChannel getFileChannel(Boolean readOnly)        throws FileNotFoundException    {        if (readOnly == true)        {            if (roChannel == null)            {                FileOutputStream stream = new FileOutputStream(path);                roChannel = stream.getChannel();                                return roChannel;            }            else                return roChannel;                    }        if (woChannel != null)            return woChannel;                FileInputStream stream = new FileInputStream(path);        woChannel = stream.getChannel();                return woChannel;    }