Initial revision
[gcc.git] / libjava / java / util / zip / DeflaterOutputStream.java
1 /* Copyright (C) 1999 Cygnus Solutions
2
3 This file is part of libgcj.
4
5 This software is copyrighted work licensed under the terms of the
6 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
7 details. */
8
9 package java.util.zip;
10 import java.io.*;
11
12 /** JUST AN INCOMPLETE STUB! */
13
14 public class DeflaterOutputStream extends FilterOutputStream
15 {
16 protected byte[] buf;
17
18 protected Deflater def;
19
20 public DeflaterOutputStream(OutputStream out)
21 {
22 this(out, null, 512);
23 }
24
25 public DeflaterOutputStream(OutputStream out, Deflater defl)
26 {
27 this(out, defl, 512);
28 }
29
30 public DeflaterOutputStream(OutputStream out, Deflater defl, int bufsize)
31 {
32 super(out);
33 buf = new byte[bufsize];
34 def = defl;
35 }
36
37 public void finish () throws IOException
38 {
39 }
40
41 public void close () throws IOException
42 {
43 finish();
44 out.close();
45 }
46 }