zip? tar.gz? ?????

Contents
[ Hide Show ]

Tar.gz? Linux ???? ?? ???? ?? ???? ???? Zip? Windows?? ?? ??? ????. zip ????? Tar.gz? ?????? ??? ?????.

??

aspose.zip api? ?? ????? ?? ???? ?? savegzipped? ?????. �Zip Archive?? Memory ?? ??? ?? ???? ???? ?? TAR ????? ?? ??? ? ????.

?? ??? ??? ????? ??? ?? ???? ??? ??????.

?? ??

?? ?? ??? Zip Archive?? ??? ???? ?? Tar.GZ ????? ?? ??? ?????. ???? ? ??? ?? ???. ??? ?? ??? ?? ??? ?? ?????.

 1try (???? ?? = ? ???? ( "source.zip")) {
 2    try (tararchive tar = new tararchive ()) {
 3        for (ArchiveEntry ?? : source.getentries ()) {
 4            if (! enther.isdirectory ()) {
 5                bytearrayoutputStream out = ??? BytearRayoutputStream ();
 6                try (inputStream mem = Entry.Open ()) {
 7                    ??? [] B = ??? ??? [8192];
 8                    int bytesread;
 9                    while (0 <(bytesread = mem.read (b, 0, b.length))) {
10                        out.write (b, 0, bytesread);
11                    }
12                }
13                tar.CreateEntry (Entry.GetName (), New ByTearRayInputStream (out.tobytearRay ());
14            }
15        }
16        
17        tar.saveGzipped("result.tar.gz");
18    }
19} catch (ioException ex) {
20    System.out.println (?);
21}
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.