/**
* $Id: NetFileCompress.java,v 1.6 2005/11/30 11:26:38 ss150821 Exp $
* Copyright 2002 Sun Microsystems, Inc. All
* rights reserved. Use of this product is subject
* to license terms. Federal Acquisitions:
* Commercial Software -- Government Users
* Subject to Standard License Terms and
* Conditions.
*
* Sun, Sun Microsystems, the Sun logo, and Sun ONE
* are trademarks or registered trademarks of Sun Microsystems,
* Inc. in the United States and other countries.
*/
/*
* @author Suresh Yellamaraju
*/
package com.sun.portal.netfile.servlet.java2;
import java.io.*;
import com.sun.portal.log.common.PortalLogger;
import java.util.Hashtable;
import java.util.zip.Deflater;
public interface NetFileCompress {
public void setCompressLevel(int i);
public void setCompressMethod(String s);
public void setBufferSize(int i);
/*
* Call the setter methods to set compression level and buffer size
* before calling the doZipCompress and doGZipCompress methods.
* If this is not done default compression level and buffer size is used.
*/
public void doCompress(InputStream istream, OutputStream ostream, Object obj)
throws IOException;
public void doZipCompress(InputStream ist, OutputStream ost, String entry)
throws IOException;
public void doGZipCompress(
InputStream ist,
OutputStream ost,
Deflater deflater) throws IOException;
}
|