Java Zip File Check isZip(File f)

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

Description

is Zip

License

Open Source License

Declaration

public static boolean isZip(File f) 

Method Source Code

//package com.java2s;
/*//from   w w w  .  j av  a2s  .  c o m
 * Copyright (c) 2013 TIBCO Software Inc. All Rights Reserved.
 *
 * Use is subject to the terms of the TIBCO license terms accompanying the download of this code.
 * In most instances, the license terms are contained in a file named license.txt.
 */

import java.io.File;

public class Main {
    public static boolean isZip(File f) {
        return f.getName().endsWith(".zip");
    }
}

Related

  1. isZip(BufferedInputStream in)
  2. isZip(byte[] bytes)
  3. isZip(File candidate)
  4. isZip(File file)
  5. isZip(File file)
  6. isZip(File file)
  7. isZip(File file)