|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
org.atmosphere.gwt.server.deflate.DeflaterOutputStream
public class DeflaterOutputStream
This class implements a stream which compresses data into the zlib format (RFC 1950).
The compression level can be specified, as a symbolic value identical to what the Deflater class
expects. The default compression level is MEDIUM.
| Constructor Summary | |
|---|---|
DeflaterOutputStream(OutputStream out)
Create the stream with the provided transport stream. |
|
DeflaterOutputStream(OutputStream out,
int level)
Create the stream with the provided transport stream. |
|
| Method Summary | |
|---|---|
void |
close()
Close this stream; the transport stream is also closed. |
void |
flush()
Flush this stream; the transport stream is also flushed. |
void |
write(byte[] buf)
|
void |
write(byte[] buf,
int off,
int len)
|
void |
write(int b)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeflaterOutputStream(OutputStream out)
throws IOException
MEDIUM) is
used.
out - the transport stream
IOException - on I/O error with the transport stream
public DeflaterOutputStream(OutputStream out,
int level)
throws IOException
out - the transport streamlevel - the compression level
IOException - on I/O error with the transport stream| Method Detail |
|---|
public void close()
throws IOException
close in interface Closeableclose in class OutputStreamIOException - on I/O error with the transport stream
public void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOException - on I/O error with the transport stream
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionOutputStream
public void write(byte[] buf)
throws IOException
write in class OutputStreamIOExceptionOutputStream
public void write(byte[] buf,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionOutputStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||