public class Compressor
extends java.lang.Object
| Constructor and Description |
|---|
Compressor(java.io.InputStream in,
java.io.OutputStream out,
CompressorConfig cfg)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(CompressorListener l)
Adds a listener.
|
void |
compress()
Lauches the compression and sends the compressed HTML code to the output stream given in the
constructor.
|
protected void |
finalize() |
public Compressor(java.io.InputStream in,
java.io.OutputStream out,
CompressorConfig cfg)
throws java.io.IOException
in - The input stream <=> uncompressed HTML code.out - The output stream <=> compressed HTML code.cfg - Tells the compressor what it must do.java.io.IOExceptionprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void addListener(CompressorListener l)
l - The CompressorListener.CompressorListener,
CompressorEventpublic void compress()
throws java.io.IOException
java.io.IOException