Java Zip File Check isZipFile(File file)

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

Description

is Zip File

License

Apache License

Declaration

public static boolean isZipFile(File file) 

Method Source Code


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

import java.io.File;

public class Main {
    public static boolean isZipFile(File file) {
        return file != null && isZipFile(file.getAbsolutePath());
    }/*w w w.j  a v  a2s.co  m*/

    public static boolean isZipFile(String filename) {
        return filename.endsWith(".zip");
    }
}

Related

  1. isZipFile(File f)
  2. isZipFile(File file)
  3. isZipFile(File file)
  4. isZipFile(File file)
  5. isZipFile(File file)
  6. isZipFile(File file)
  7. isZipFile(File file)
  8. isZipFile(File file)
  9. isZipFile(File file)