Here you can find the source of isGzipped(File file)
Parameter | Description |
---|---|
file | a parameter |
public static boolean isGzipped(File file)
//package com.java2s; //License from project: Open Source License import java.io.File; public class Main { /**/*from ww w . j a v a 2s.com*/ * Returns true if file has a .gz extension * @param file * @return */ public static boolean isGzipped(File file) { return file.getName().endsWith(".gz"); } }