All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.seratch.taskun.util.IOCloser Maven / Gradle / Ivy

The newest version!
package com.github.seratch.taskun.util;

import java.io.BufferedReader;
import java.io.InputStream;

public final class IOCloser {

    private IOCloser() {
    }

    public static void close(InputStream is) {
        if (is != null) {
            try {
                is.close();
            } catch (Exception e2) {
            }
        }
    }

    public static void close(BufferedReader br) {
        if (br != null) {
            try {
                br.close();
            } catch (Exception e2) {
            }
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy