Package org.codehaus.plexus.archiver.zip

Examples of org.codehaus.plexus.archiver.zip.ZipEntry


    ZipFile zip = null;
    try {
      zip = new ZipFile(jarFile);
      Enumeration files = zip.getEntries();
      while (files.hasMoreElements()) {
        ZipEntry nextEntry = (ZipEntry) files.nextElement();
        if (nextEntry == null || nextEntry.isDirectory()) {
          continue;
        }
        String name = nextEntry.getName();
        if (name.equals("META-INF/tobago-theme.xml") || name.equals("META-INF/tobago-config.xml")) {
          XmlStreamReader xsr = null;
          try {
            StringWriter stringWriter = new StringWriter();
            xsr = ReaderFactory.newXmlReader(zip.getInputStream(nextEntry));
View Full Code Here

TOP

Related Classes of org.codehaus.plexus.archiver.zip.ZipEntry

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.