author | wenzelm |
Fri, 20 Apr 2018 22:17:42 +0200 | |
changeset 68018 | 3747fe57eb67 |
parent 64004 | b4ece7a3f2ca |
child 71961 | af779738a8f9 |
permissions | -rw-r--r-- |
64000 | 1 |
/* Title: Pure/General/xz.scala |
52671
9a360530eac8
separate module XZ_File to avoid initial dependency on org.tukaani.xz;
wenzelm
parents:
diff
changeset
|
2 |
Author: Makarius |
9a360530eac8
separate module XZ_File to avoid initial dependency on org.tukaani.xz;
wenzelm
parents:
diff
changeset
|
3 |
|
64002 | 4 |
Support for XZ data compression. |
52671
9a360530eac8
separate module XZ_File to avoid initial dependency on org.tukaani.xz;
wenzelm
parents:
diff
changeset
|
5 |
*/ |
9a360530eac8
separate module XZ_File to avoid initial dependency on org.tukaani.xz;
wenzelm
parents:
diff
changeset
|
6 |
|
9a360530eac8
separate module XZ_File to avoid initial dependency on org.tukaani.xz;
wenzelm
parents:
diff
changeset
|
7 |
package isabelle |
9a360530eac8
separate module XZ_File to avoid initial dependency on org.tukaani.xz;
wenzelm
parents:
diff
changeset
|
8 |
|
9a360530eac8
separate module XZ_File to avoid initial dependency on org.tukaani.xz;
wenzelm
parents:
diff
changeset
|
9 |
|
68018 | 10 |
import org.tukaani.xz.{LZMA2Options, ArrayCache, BasicArrayCache} |
52671
9a360530eac8
separate module XZ_File to avoid initial dependency on org.tukaani.xz;
wenzelm
parents:
diff
changeset
|
11 |
|
9a360530eac8
separate module XZ_File to avoid initial dependency on org.tukaani.xz;
wenzelm
parents:
diff
changeset
|
12 |
|
64000 | 13 |
object XZ |
52671
9a360530eac8
separate module XZ_File to avoid initial dependency on org.tukaani.xz;
wenzelm
parents:
diff
changeset
|
14 |
{ |
68018 | 15 |
/* options */ |
16 |
||
64002 | 17 |
type Options = LZMA2Options |
18 |
||
64004 | 19 |
def options(preset: Int = 3): Options = |
64000 | 20 |
{ |
21 |
val opts = new LZMA2Options |
|
22 |
opts.setPreset(preset) |
|
23 |
opts |
|
24 |
} |
|
68018 | 25 |
|
26 |
||
27 |
/* cache */ |
|
28 |
||
29 |
type Cache = ArrayCache |
|
30 |
||
31 |
def cache(): ArrayCache = ArrayCache.getDefaultCache() |
|
32 |
def make_cache(): ArrayCache = new BasicArrayCache |
|
52671
9a360530eac8
separate module XZ_File to avoid initial dependency on org.tukaani.xz;
wenzelm
parents:
diff
changeset
|
33 |
} |