Package com.dotcms.repackage.org.apache.commons.compress.archivers.tar

Examples of com.dotcms.repackage.org.apache.commons.compress.archivers.tar.TarArchiveEntry


          // Create an entry for the file
          if(!dir.equals("."))
            if(File.separator.equals("\\")){
              dir = dir.replaceAll("\\\\", "/");
            }
            taos.putArchiveEntry(new TarArchiveEntry(file, dir + "/" + file.getName()));
        if (file.isFile()) {
              // Add the file to the archive
          BufferedInputStream bis = new BufferedInputStream(new FileInputStream(file));
          IOUtils.copy(new FileInputStream(file), taos);
          taos.closeArchiveEntry();
View Full Code Here

TOP

Related Classes of com.dotcms.repackage.org.apache.commons.compress.archivers.tar.TarArchiveEntry

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.