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, writeString
public GZipOutputStream(DataOutput out) throws IOException
IOException
public long written()
DataOutputStream
written
in interface DataOutput
written
in class DataOutputStream
public void writeByte(int val) throws IOException
DataOutputStream
writeByte
in interface DataOutput
writeByte
in class DataOutputStream
val
- Description of the ParameterIOException
- Description of the Exceptionpublic void write(byte[] buf, int offset, int len) throws IOException
DataOutputStream
write
in interface DataOutput
write
in class DataOutputStream
buf
- Description of the Parameteroffset
- Description of the Parameterlen
- Description of the ParameterIOException
- Description of the Exceptionpublic void finish() throws IOException
IOException
public void close() throws IOException
close
in class DataOutputStream
IOException
- Description of the Exceptionpublic void flush() throws IOException
flush
in class DataOutputStream
IOException
public static byte[] compress(byte[] data, int len)
Copyright © 2016 Egothor. All Rights Reserved.