Java Zip File Check isZipFile(File file)

Here you can find the source of isZipFile(File file)

Description

is Zip File

License

Open Source License

Declaration

public static boolean isZipFile(File file) 

Method Source Code

//package com.java2s;

import java.io.File;

public class Main {
    public static final String ZIP_FILE = "zip";

    public static boolean isZipFile(File file) {
        if (file != null && file.getName() != null && file.getName().toLowerCase().endsWith(ZIP_FILE.toLowerCase()))
            return true;
        else/*from   www.  j  av a  2  s  . c o m*/
            return false;
    }
}

Related

  1. isZipFile(File file)
  2. isZipFile(File file)
  3. isZipFile(File file)
  4. isZipFile(File file)
  5. isZipFile(File file)
  6. isZipFile(File file)
  7. isZipFile(InputStream stream)
  8. isZipFile(java.io.File file)
  9. isZipFile(String fileName)