Here you can find the source of isZip(Path path)
Helper method to check zip path.
Parameter | Description |
---|---|
path | a parameter |
private static boolean isZip(Path path)
//package com.java2s; /*/*from w w w . ja v a2 s .c o m*/ * Copyright (C) 2017 Nameless Production Committee * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT */ import java.nio.file.Path; public class Main { /** * <p> * Helper method to check zip path. * </p> * * @param path * @return */ private static boolean isZip(Path path) { return path.getClass().getSimpleName().endsWith("ZipPath"); } }