Package org.zeroturnaround.zip.transform

Examples of org.zeroturnaround.zip.transform.StringZipEntryTransformer


  }

  /* Transforming */

  public static void transformEntry() {
    ZipUtil.transformEntry(new File("/tmp/demo"), "sample.txt", new StringZipEntryTransformer() {
      protected String transform(ZipEntry zipEntry, String input) throws IOException {
        return input.toUpperCase();
      }
    }, new File("/tmp/demo.zip"));
  }
View Full Code Here


      FileOutputStream out = null;
      try {
        in = new FileInputStream(file1);
        out = new FileOutputStream(file2);
       
        ZipUtil.transformEntry(in, name, new StringZipEntryTransformer("UTF-8") {
          protected String transform(ZipEntry zipEntry, String input) throws IOException {
            return input.toUpperCase();
          }
        } , out);
      }
View Full Code Here

TOP

Related Classes of org.zeroturnaround.zip.transform.StringZipEntryTransformer

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.