01: /**
02: * $Id: NetFileCompress.java,v 1.6 2005/11/30 11:26:38 ss150821 Exp $
03: * Copyright 2002 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.netfile.servlet.java2;
14:
15: import java.io.*;
16: import com.sun.portal.log.common.PortalLogger;
17: import java.util.Hashtable;
18: import java.util.zip.Deflater;
19:
20: public interface NetFileCompress {
21:
22: public void setCompressLevel(int i);
23:
24: public void setCompressMethod(String s);
25:
26: public void setBufferSize(int i);
27:
28: /*
29: * Call the setter methods to set compression level and buffer size
30: * before calling the doZipCompress and doGZipCompress methods.
31: * If this is not done default compression level and buffer size is used.
32: */
33: public void doCompress(InputStream istream, OutputStream ostream,
34: Object obj) throws IOException;
35:
36: public void doZipCompress(InputStream ist, OutputStream ost,
37: String entry) throws IOException;
38:
39: public void doGZipCompress(InputStream ist, OutputStream ost,
40: Deflater deflater) throws IOException;
41: }
|