if (randomAccessFile == null) { try { randomAccessFile = new RandomAccessFile(new File(db_name), "rw"); } catch (FileNotFoundException e) { throw new FileNotFoundException(e.getMessage()); return randomAccessFile; ...
InputStream is = getInputStream(path); if (is != null) { return new RandomAccessFile(new File(path), "r"); return null;