Here you can find the source of isZip(File candidate)
Parameter | Description |
---|---|
candidate | the candidate |
public static boolean isZip(File candidate)
//package com.java2s; //License from project: Apache License import java.io.*; public class Main { /**/*from w w w.j a v a2s. c om*/ * Checks if is zip (extension == zip). * * @param candidate the candidate * @return true, if is zip */ public static boolean isZip(File candidate) { return candidate.getName().toLowerCase().endsWith(".zip"); } }