Here you can find the source of closeImage()
public static void closeImage() throws IOException
//package com.java2s; //License from project: Apache License import java.io.IOException; import java.io.RandomAccessFile; public class Main { private static RandomAccessFile stream; public static void closeImage() throws IOException { stream.close();//from w ww .j a va 2 s . c o m } }