Java Zip File Check isZipFile(File f)

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

Description

is Zip File

License

Open Source License

Declaration

public static boolean isZipFile(File f) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.*;

public class Main {
    public static boolean isZipFile(File f) {
        if (f != null) {
            if (f.getName().contains(".zip") || f.getAbsolutePath().contains(".zip")) {
                return true;
            }//from  ww w.  ja va  2  s .c  o  m
        }
        return false;
    }
}

Related

  1. isZip64EndOfCentralDirectoryLocatorPresent(RandomAccessFile zip, long zipEndOfCentralDirectoryPosition)
  2. isZipContainsEntry(File zip, String relativePath)
  3. isZipEntryPackage(String str)
  4. isZipFile(File f)
  5. isZipFile(File f)
  6. isZipFile(File f)
  7. isZipFile(File f)
  8. isZipFile(File file)
  9. isZipFile(File file)