Package com.ice.tar

Examples of com.ice.tar.TarArchive.writeEntry()


        }
        // FIXME: index -1 wanneer verkeerde file sep!
        entry.setName(entry.getName().substring(entry.getName().lastIndexOf("/") + 1, entry.getName().length()));

        // add to tar. just a file, no need for recursion ('false')
        archive.writeEntry(entry, false);

      }
      else
      {
        // entry is a directory, so tar the content :)
View Full Code Here


        }
        // FIXME: index -1 wanneer verkeerde file sep!
        entry.setName(entry.getName().substring(entry.getName().lastIndexOf("/") + 1, entry.getName().length()));

        // write entry (now a tar) to tar
        archive.writeEntry(entry, false);
      }
    }

    // close
    if (archive != null) // CLOSE ARCHIVE
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.