📜  java.util.zip-InflaterOutputStream类

📅  最后修改于: 2020-11-14 10:54:00             🧑  作者: Mango


介绍

java.util.zip.InflaterOutputStream类实现输出流过滤器,以解压缩以“ deflate”压缩格式存储的数据。

类声明

以下是java.util.zip.InflaterOutputStream类的声明-

public class InflaterOutputStream
   extends FilterOutputStream

领域

以下是java.util.zip.InflaterOutputStream类的字段-

  • protected byte [] buf-用于写入未压缩数据的输出缓冲区。

  • protected Inflater inf-此流的解压缩器。

建设者

Sr.No. Constructor & Description
1

InflaterOutputStream(OutputStream out)

Creates a new output stream with a default decompressor and buffer size.

2

InflaterOutputStream(OutputStream out, Inflater infl)

Creates a new output stream with the specified decompressor and a default buffer size.

3

InflaterOutputStream(OutputStream out, Inflater infl, int bufLen)

Creates a new output stream with the specified decompressor and buffer size.

类方法

Sr.No. Method & Description
1 void close()

Writes remaining compressed data to the output stream and closes the underlying stream.

2 void finish()

Finishes writing uncompressed data to the output stream without closing the underlying stream.

3 void flush()

Flushes this output stream, forcing any pending buffered output bytes to be written.

4 void write(byte[] b, int off, int len)

Writes an array of bytes to the compressed output stream.

5 void write(int b)

Writes a byte to the compressed output stream.

方法继承

此类从以下类继承方法-

  • java.io.FilterOutputStream
  • java.lang.Object

打印