goja-core/src/main/java/goja/core/kits/stream/StreamUtil.java
public static void close(Writer out) {
        if (out != null) {
            try {
                out.flush();
            } catch (IOException ioex) {
                // ignore
            }
            try {
                out.close();
            } catch (IOException ioex) {
                // ignore
            }
        }
    }
public static void close(Writer out) {
        if (out != null) {
            try {
                out.flush();
            } catch (IOException ioex) {
                // ignore
            }
            try {
                out.close();
            } catch (IOException ioex) {
                // ignore
            }
        }
    }
public static void close ( Writer out ) { if ( out != null ) { try { out . flush ( ) ; } catch ( IOException ioex ) { // ignore } try { out . close ( ) ; } catch ( IOException ioex ) { // ignore } } }
Closes a character-output stream and releases any system resources
associated with this stream. No exception will be thrown if an I/O error
occurs.
Closes a character - output stream and releases any system resources associated with this stream . No exception will be thrown if an I / O error occurs .