Package com.subhajit.common.util.CommonUtils

Examples of com.subhajit.common.util.CommonUtils.ZipParser


              resources = new DirectoryParser(file)
                  .iterator();
            } else if (file.isFile()
                && file.getName().endsWith(".jar")) {
              zipFile = new ZipFile(file);
              resources = new ZipParser(zipFile)
                  .iterator();
            } else {
              throw new UnsupportedOperationException(
                  "Resource listing is supported only on directories and JAR files.");
            }
View Full Code Here


                            file = file.getParentFile();
                        }
                        parser = new DirectoryParser(file);
                    } else if (file.isFile() && file.getName().endsWith(".jar")) {
                        zipFile = new ZipFile(file);
                        parser = new ZipParser(zipFile);
                    } else {
                        throw new UnsupportedOperationException(
                                "Unsupported file: neither directory nor name-ends-with \".jar\"");
                    }
                    for (Iterator<IResource> it = parser.iterator(); it
View Full Code Here

          IRepositoryParser parser = null;
          ZipFile zipFile = null;
          try {
            if (file.isFile() && file.getName().endsWith(".jar")) {
              zipFile = new ZipFile(file);
              parser = new ZipParser(zipFile);
            } else if (file.isDirectory()) {
              parser = new DirectoryParser(file);
            }
            for (Iterator<IResource> it = parser
                .iterator(); it.hasNext();) {
View Full Code Here

              resources = new DirectoryParser(file)
                  .iterator();
            } else if (file.isFile()
                && file.getName().endsWith(".jar")) {
              zipFile = new ZipFile(file);
              resources = new ZipParser(zipFile)
                  .iterator();
            } else {
              throw new UnsupportedOperationException(
                  "Resource listing is supported only on directories and JAR files.");
            }
View Full Code Here

TOP

Related Classes of com.subhajit.common.util.CommonUtils.ZipParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.