public class GZipOutputStream extends DataOutputStream
| Constructor and Description |
|---|
GZipOutputStream(DataOutput out) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Only flushes the stream, but does not close the underlaying stream.
|
static byte[] |
compress(byte[] data,
int len)
Reads the data block of the given length and creates a new data block of this format: (len:int)(data:byte[]) where
the length of data is the len
the original data block is compressed into the new block and its data part
|
void |
finish() |
void |
flush() |
void |
write(byte[] buf,
int offset,
int len)
Description of the Method
|
void |
writeByte(int val)
Description of the Method
|
long |
written()
Description of the Method
|
copyFrom, copyFrom, printUTFS, writeBoolean, writeFully, writeInt, writeLong, writePack7, writePack7I, writeShort, writeStringpublic GZipOutputStream(DataOutput out) throws IOException
IOExceptionpublic long written()
DataOutputStreamwritten in interface DataOutputwritten in class DataOutputStreampublic void writeByte(int val)
throws IOException
DataOutputStreamwriteByte in interface DataOutputwriteByte in class DataOutputStreamval - Description of the ParameterIOException - Description of the Exceptionpublic void write(byte[] buf,
int offset,
int len)
throws IOException
DataOutputStreamwrite in interface DataOutputwrite in class DataOutputStreambuf - Description of the Parameteroffset - Description of the Parameterlen - Description of the ParameterIOException - Description of the Exceptionpublic void finish()
throws IOException
IOExceptionpublic void close()
throws IOException
close in class DataOutputStreamIOException - Description of the Exceptionpublic void flush()
throws IOException
flush in class DataOutputStreamIOExceptionpublic static byte[] compress(byte[] data,
int len)
Copyright © 2016 Egothor. All Rights Reserved.