summaryrefslogtreecommitdiffstats
path: root/libjava/java/util/zip/Deflater.java
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-29 07:37:14 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-29 07:37:14 +0000
commitf894682734002d3f477d0cdacde029ef663ebb95 (patch)
treee7ee5b6202a3ea298aed979b4bf46e9121359c4a /libjava/java/util/zip/Deflater.java
parent7caff4c2525635b16f3373431217c51de38a8713 (diff)
downloadppe42-gcc-f894682734002d3f477d0cdacde029ef663ebb95.tar.gz
ppe42-gcc-f894682734002d3f477d0cdacde029ef663ebb95.zip
2003-04-29 Michael Koch <konqueror@gmx.de>
* java/util/zip/Deflater.java, java/util/zip/DeflaterOutputStream.java: Partly merged with classpath. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66207 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/util/zip/Deflater.java')
-rw-r--r--libjava/java/util/zip/Deflater.java28
1 files changed, 27 insertions, 1 deletions
diff --git a/libjava/java/util/zip/Deflater.java b/libjava/java/util/zip/Deflater.java
index d11370fa940..ce3dc0ba52f 100644
--- a/libjava/java/util/zip/Deflater.java
+++ b/libjava/java/util/zip/Deflater.java
@@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
-
+
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@@ -51,15 +51,41 @@ import gnu.gcj.RawData;
public class Deflater
{
+ /**
+ * The best and slowest compression level. This tries to find very
+ * long and distant string repetitions.
+ */
public static final int BEST_COMPRESSION = 9;
+ /**
+ * The worst but fastest compression level.
+ */
public static final int BEST_SPEED = 1;
+ /**
+ * The default compression level.
+ */
public static final int DEFAULT_COMPRESSION = -1;
+ /**
+ * This level won't compress at all but output uncompressed blocks.
+ */
public static final int NO_COMPRESSION = 0;
+ /**
+ * The default strategy.
+ */
public static final int DEFAULT_STRATEGY = 0;
public static final int FILTERED = 1;
+
+ /**
+ * This strategy will not look for string repetitions at all. It
+ * only encodes with Huffman trees (which means, that more common
+ * characters get a smaller encoding.
+ */
public static final int HUFFMAN_ONLY = 2;
+ /**
+ * The compression method. This is the only method supported so far.
+ * There is no need to use this constant at all.
+ */
public static final int DEFLATED = 8;
public int deflate (byte[] buf)
OpenPOWER on IntegriCloud