|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.util.zip.DeflaterOutputStream
org.hd.d.pg2k.svrCore.DefOutputStream
public final class DefOutputStream
Like GZIPOutputStream but no GZIP header or checksum. This is meant to give maximum compression and assumes error checking/recovery is done elsewhere.
| Field Summary |
|---|
| Fields inherited from class java.util.zip.DeflaterOutputStream |
|---|
buf, def |
| Fields inherited from class java.io.FilterOutputStream |
|---|
out |
| Constructor Summary | |
|---|---|
|
DefOutputStream(java.io.OutputStream out)
Creates a new output stream with a default buffer size. |
private |
DefOutputStream(java.io.OutputStream out,
int size)
Creates a new output stream with the specified buffer size. |
| Method Summary | |
|---|---|
void |
close()
Writes remaining compressed data to the output stream and closes it. |
void |
finish()
Finishes writing compressed data to the output stream without closing it. |
void |
write(byte[] buf,
int off,
int len)
Writes array of bytes to the compressed output stream; blocking. |
| Methods inherited from class java.util.zip.DeflaterOutputStream |
|---|
deflate, write |
| Methods inherited from class java.io.FilterOutputStream |
|---|
flush, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private DefOutputStream(java.io.OutputStream out,
int size)
This compressed stream is wrapped with neither GZIP nor ZLIB headers/checksums to minimise overheads; we'd better be doing error detection and correction elsewhere!
out - the output streamsize - the output buffer size;
changing this from the default of 512 bytes is unlikely
to improve performancepublic DefOutputStream(java.io.OutputStream out)
out - the output stream| Method Detail |
|---|
public void write(byte[] buf,
int off,
int len)
throws java.io.IOException
write in class java.util.zip.DeflaterOutputStreamjava.io.IOException - if an I/O error has occurred
public void finish()
throws java.io.IOException
finish in class java.util.zip.DeflaterOutputStreamjava.io.IOException - if an I/O error has occurred
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.util.zip.DeflaterOutputStreamjava.io.IOException - if an I/O error has occurred
|
DHD Multimedia Gallery V1.50.55 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||