XAR ???? ??
Contents
[
Hide
Show
]??
Xar? ???? Mac OS ???? ?????. ?? ????? ???? aspose.zip?? ??? ????? ??? ? ????.
aspose.zip? Zzib ? BZIP2? ???? ?? ? ???? XAR ????? ?? ? ? ????.
???? ???
?? ?? ??? Zlib ???? ?? ? ? ?? ???? XAR ????? ?????.
1java.io.file fi1 = new java.io.file ( "alice29.txt");
2java.io.file fi2 = new java.io.file ( "asyoulik.txt");
3??? xarfile = "output.xar";
4
5try (xararchive archive = new xararchive (new xarzlibcompressionsettings ())) {
6 archive.createentry ( "alice29.txt", fi1, false);
7 archive.createentry ( "fields.c", fi2, false);
8 Archive.save (xarfile);
9}