Java Stream Close closeQuietly(java.io.Closeable writer)

Here you can find the source of closeQuietly(java.io.Closeable writer)

Description

close Quietly

License

Open Source License

Declaration

public static void closeQuietly(java.io.Closeable writer) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.*;

public class Main {
    public static void closeQuietly(java.io.Closeable writer) {
        try {/*from w w  w. j  a va  2  s.co  m*/
            if (writer != null) {
                writer.close();
            }
        } catch (IOException ioe) {
            // ignore
        }
    }
}

Related

  1. closeQuietly(InputStream is)
  2. closeQuietly(InputStream is)
  3. closeQuietly(InputStream is)
  4. closeQuietly(InputStream stream)
  5. closeQuietly(InputStream x)
  6. closeQuietly(Object input)
  7. closeQuietly(Object obj)
  8. closeQuietly(Object object)
  9. closeQuietly(Object object)