Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.io.Closeable;

import java.io.IOException;

public class Main {
    /**
     * Silent close a closable object.
     * @param o
     */
    public static void silentClose(Closeable o) {
        if (o != null) {
            try {
                o.close();
            } catch (IOException e) {
                //            msLogger.debug(ApplicationUtil.class.getName() + "#slientClose() error occurred!!!", e);
            }
        }
    }
}