Java Stream Close close(ZipFile file)

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

Description

close

License

LGPL

Declaration

public static void close(ZipFile file) 

Method Source Code


//package com.java2s;
//License from project: LGPL 

import java.io.IOException;
import java.util.zip.ZipFile;
import java.util.zip.ZipOutputStream;

public class Main {
    public static void close(ZipOutputStream zos) {
        if (zos == null)
            return;
        try {/*  w  w w  .j  av  a 2s  . com*/
            zos.close();
        } catch (IOException e) {
        }
    }

    public static void close(ZipFile file) {
        if (file == null)
            return;
        try {
            file.close();
        } catch (IOException e) {
        }
    }
}

Related

  1. close(Process process)
  2. close(RandomAccessFile randomAccessFile)
  3. close(Writer out)
  4. close(Writer stream)
  5. close(ZipFile file)
  6. close(ZipFile file)
  7. close(ZipFile zipFile)
  8. closeAll()
  9. closeAll()