Here you can find the source of closeRandomAccessFile()
public static void closeRandomAccessFile()
//package com.java2s; //License from project: Open Source License import java.io.IOException; import java.io.RandomAccessFile; public class Main { private static RandomAccessFile randomAccessFile = null; public static void closeRandomAccessFile() { if (randomAccessFile != null) { try { randomAccessFile.close(); } catch (IOException e) { new IOException(e.getMessage()); }// w ww .j a v a2 s. com } } }