Searched defs:deflate (Results 1 - 4 of 4) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/zip/
H A DInflaterTest.java40 byte[] deflatedBytes = deflate(expectedBytes, dictionary);
95 byte[] emptyInput = deflate(new byte[0], null);
103 private static byte[] deflate(byte[] input, byte[] dictionary) { method in class:InflaterTest
113 int byteCount = deflater.deflate(buf);
/libcore/luni/src/main/java/java/util/zip/
H A DDeflaterOutputStream.java115 protected void deflate() throws IOException { method in class:DeflaterOutputStream
117 while ((byteCount = def.deflate(buf)) != 0) {
154 int byteCount = def.deflate(buf);
179 deflate();
191 // Though not documented, it's illegal to call deflate with any flush param
193 // at the start of the deflate function in deflate.c.
196 while ((byteCount = def.deflate(buf, 0, buf.length, Deflater.SYNC_FLUSH)) != 0) {
H A DDeflater.java41 * int byteCount = deflater.deflate(buf);
201 public int deflate(byte[] buf) { method in class:Deflater
202 return deflate(buf, 0, buf.length);
211 public synchronized int deflate(byte[] buf, int offset, int byteCount) { method in class:Deflater
224 * and additional calls to {@link #deflate} to be made.
228 public synchronized int deflate(byte[] buf, int offset, int byteCount, int flush) { method in class:Deflater
298 * successfully compressed and consumed by {@link #deflate deflate}.
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
H A DDeflaterOutputStreamTest.java53 protected void deflate() throws IOException { method in class:DeflaterOutputStreamTest.MyDeflaterOutputStream
55 super.deflate();
70 Deflater deflate = new Deflater(1);
71 deflate.setInput(byteArray);
72 while (!(deflate.needsInput())) {
73 x += deflate.deflate(outputBuf, x, outputBuf.length - x);
75 deflate.finish();
76 while (!(deflate.finished())) {
77 x = x + deflate
[all...]

Completed in 174 milliseconds