?? ???? ?? ??

Contents
[ Hide Show ]

?? ??

TAR Archive ?? ??? ?? ??? ?? ? ? ????. ?? ??? ?? ? ? ????.

???? ??

TAR ????? ? ??? ???? ??? ????.

 1try (fileoutputStream tarfile = ? FileOutputStream ( "conter.tar")) {
 2    ?? fi1 = ? ?? ( "text.txt");
 3    fi2 = ? ?? ( "picture.png");
 4
 5    try (TarArchive archive = new TarArchive()) {
 6        archive.createEntry("text.txt", fi1);
 7        archive.createEntry("picture.png", fi2);
 8        archive.save(tarFile);
 9    }
10} catch (ioException ex) {
11    System.out.println (?);
12}

?? ?? ????

UNIX? ?? ?? ??Tar ??????? Tar Archive? ??? GZIP? ?? ? ? ????. ASSPER.zip? SaveGzipped ???? ??? ??? ?????.

1try (tararchive archive = new tararchive ()) {
2    archive.createentry ( "text.txt", "d : \\ texts \\ article.txt");
3    archive.createentry ( "picture.png", "d : \\ picture \\ photo.png");
4    archive.savegzipped ( "result.tar.gz");
5}

??? XZ Utility? Linux? Unix?? ??? ?????. TAR? ??? Aspose.zip? ???? ?????. TAR ????? SavexzCompressed ??? ??????.

1try (tararchive archive = new tararchive ()) {
2    archive.createentry ( "text.txt", "d : \\ texts \\ article.txt");
3    archive.createentry ( "picture.png", "d : \\ picture \\ photo.png");
4    archive.savexzcompressed ( "result.tar.xz");
5}
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.