Android Stream Close closeQuitely(Closeable c)

Here you can find the source of closeQuitely(Closeable c)

Description

close Quitely

Declaration

public static void closeQuitely(Closeable c) 

Method Source Code

//package com.java2s;

import java.io.Closeable;

import java.io.IOException;

public class Main {
    public static void closeQuitely(Closeable c) {
        if (c == null)
            return;

        try {//from www . ja v  a  2 s  .c o m
            c.close();
        } catch (IOException e) {
            // ignore
        }
    }
}

Related

  1. close(Closeable closeable)
  2. closeOutputStream(OutputStream os)
  3. closeQuietly(Closeable closeable)
  4. closeStream(Closeable stream)
  5. closeStream(Closeable stream)
  6. closeStreams(List streams)
  7. safeClose(OutputStream os)