|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.izforge.izpress.Compressor
Compressor is the class used to compress the size of a (valid !) HTML code.
To use it, first create an instance of Compressor and give the constructor an input stream and an output
stream. Then call compress() that will send to the output stream the compressed HTML code.
Constructor Summary | |
Compressor(java.io.InputStream in,
java.io.OutputStream out,
CompressorConfig cfg)
The constructor. |
Method Summary | |
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()
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
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.Method Detail |
protected void finalize() throws java.lang.Throwable
java.lang.Throwable
public void addListener(CompressorListener l)
l
- The CompressorListener.CompressorListener
,
CompressorEvent
public void compress() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |