Java java.util.zip GZIPOutputStream fields, constructors, methods, implement or subclass

Example usage for Java java.util.zip GZIPOutputStream fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util.zip GZIPOutputStream.

The text is from its open source code.

Constructor

GZIPOutputStream(OutputStream out)
Creates a new output stream with a default buffer size.
GZIPOutputStream(OutputStream out, int size)
Creates a new output stream with the specified buffer size.
GZIPOutputStream(OutputStream out, boolean syncFlush)
Creates a new output stream with a default buffer size and the specified flush mode.

Method

voidclose()
Writes remaining compressed data to the output stream and closes the underlying stream.
voidfinish()
Finishes writing compressed data to the output stream without closing the underlying stream.
voidflush()
Flushes the compressed output stream.
voidwrite(int b)
Writes a byte to the compressed output stream.
voidwrite(byte[] buf, int off, int len)
Writes array of bytes to the compressed output stream.