Java Stream Close closeRandomAccessFile()

Here you can find the source of closeRandomAccessFile()

Description

close Random Access File

License

Open Source License

Declaration

public static void closeRandomAccessFile() 

Method Source Code

//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
        }
    }
}

Related

  1. closeQuietly(Reader r)
  2. closeQuietly(Reader reader)
  3. closeQuietly(Writer writer)
  4. closeQuietly(ZipFile closeable)
  5. closeQuietlyWithResult(InputStream sourceInput, boolean suppressionSourceExists)
  6. closeReader(BufferedReader reader)
  7. closeReader(final Reader reader)
  8. closeReader(Reader r)
  9. closeReader(Reader reader)