Searched refs:deflate (Results 1 - 15 of 15) sorted by relevance

/libcore/ojluni/src/main/java/java/util/zip/
H A DDeflaterOutputStream.java36 * the "deflate" compression format. It is also used as the basis for other
212 deflate();
227 deflate();
251 protected void deflate() throws IOException { method in class:DeflaterOutputStream
254 while ((len = def.deflate(buf, 0, buf.length)) > 0) {
277 while ((len = def.deflate(buf, 0, buf.length, Deflater.SYNC_FLUSH)) > 0)
H A DDeflater.java53 * int compressedDataLength = compresser.deflate(output);
91 * Compression method for the deflate algorithm (the only one currently
136 * @see Deflater#deflate(byte[], int, int, int)
145 * @see Deflater#deflate(byte[], int, int, int)
155 * @see Deflater#deflate(byte[], int, int, int)
268 * of {@code deflate} will compress the input available so far with
297 * of {@code deflate} will compress the input available so far
357 * An invocation of this method of the form {@code deflater.deflate(b, off, len)}
359 * {@code deflater.deflate(b, off, len, Deflater.NO_FLUSH)}.
367 public int deflate(byt method in class:Deflater
386 public int deflate(byte[] b) { method in class:Deflater
434 public int deflate(byte[] b, int off, int len, int flush) { method in class:Deflater
[all...]
H A DGZIPOutputStream.java159 int len = def.deflate(buf, 0, buf.length);
H A DDeflaterInputStream.java34 * Implements an input stream filter for compressing data in the "deflate"
182 // Read and compress (deflate) input data bytes
199 n = def.deflate(b, off, len);
H A DZipOutputStream.java257 deflate();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
H A DDeflaterTest.java67 * java.util.zip.Deflater#deflate(byte[])
79 x += defl.deflate(outPutBuf);
82 .deflate(outPutBuf));
109 * java.util.zip.Deflater#deflate(byte[], int, int)
123 x += defl.deflate(outPutBuf, offSet, length);
125 assertEquals("Deflater at end of stream, should return 0", 0, defl.deflate(
164 defl.deflate(outPutBuf, offSet, length);
184 defl.deflate(outPutBuf);
220 x += defl.deflate(outPutBuf);
256 defl.deflate(outPutBu
[all...]
H A DDeflaterOutputStreamTest.java58 protected void deflate() throws IOException { method in class:DeflaterOutputStreamTest.MyDeflaterOutputStream
60 super.deflate();
75 Deflater deflate = new Deflater(1);
76 deflate.setInput(byteArray);
77 while (!(deflate.needsInput())) {
78 x += deflate.deflate(outputBuf, x, outputBuf.length - x);
80 deflate.finish();
81 while (!(deflate.finished())) {
82 x = x + deflate
[all...]
H A DInflaterTest.java148 Deflater deflate = new Deflater(1);
149 deflate.setInput(byteArray);
150 while (!(deflate.needsInput())) {
151 x += deflate.deflate(outPutBuf, x, outPutBuf.length - x);
153 deflate.finish();
154 while (!(deflate.finished())) {
155 x = x + deflate.deflate(outPutBuf, x, outPutBuf.length - x);
170 // System.out.print(deflate
[all...]
H A DInflaterOutputStreamTest.java192 int length1 = defaultDeflater.deflate(compressedBytes);
199 int length2 = bestDeflater.deflate(compressedBytes, length1, compressedBytes.length - length1);
419 return deflater.deflate(compressedBytes);
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DInflaterTest.java46 byte[] deflatedBytes = deflate(expectedBytes, dictionary);
101 byte[] emptyInput = deflate(new byte[0], null);
110 private static byte[] deflate(byte[] input, byte[] dictionary) { method in class:InflaterTest
121 int byteCount = deflater.deflate(buf);
139 byte[] compressed = deflate(new byte[] { 1, 2, 3 }, null);
H A DDeflaterTest.java81 int lastDeflated = deflater.deflate(compressed, totalDeflated,
109 assertEquals(11, deflater.deflate(compressed, 0, compressed.length, Deflater.FULL_FLUSH));
116 assertEquals(9, deflater.deflate(compressed, 0, compressed.length, Deflater.FULL_FLUSH));
H A DDeflaterOutputStreamTest.java110 public int deflate(byte[] buf, int offset, int byteCount) { method in class:DeflaterOutputStreamTest.FlushingDeflater
111 return super.deflate(buf, offset, byteCount, Deflater.SYNC_FLUSH);
H A DOldAndroidDeflateTest.java37 * Simple inflate/deflate test, taken from the reference docs for the
51 int compressedDataLength = compresser.deflate(output);
151 // deflate to current position in output buffer
154 compCount = deflater.deflate(outBuf, outPosn, LOCAL_BUF_SIZE);
H A DOldAndroidZipStressTest.java159 deflater.deflate(zipped);
/libcore/ojluni/src/main/native/
H A Djava_util_zip_Deflater.c197 res = deflate(strm, finish ? Z_FINISH : flush);

Completed in 1047 milliseconds