Java Stream Close close(ZipFile zipFile)

Here you can find the source of close(ZipFile zipFile)

Description

Closes zip file safely.

License

Open Source License

Declaration

public static void close(ZipFile zipFile) 

Method Source Code


//package com.java2s;
import java.io.*;

import java.util.zip.*;

public class Main {
    /**/*from   ww  w.  j  ava  2 s  . c  om*/
     * Closes zip file safely.
     */
    public static void close(ZipFile zipFile) {
        if (zipFile != null) {
            try {
                zipFile.close();
            } catch (IOException ioex) {
                // ignore
            }
        }
    }
}

Related

  1. close(Writer out)
  2. close(Writer stream)
  3. close(ZipFile file)
  4. close(ZipFile file)
  5. close(ZipFile file)
  6. closeAll()
  7. closeAll()
  8. closeAll(Collection closeables)
  9. closeAll(Exception firstEx, Closeable... objects)