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

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

Introduction

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

The text is from its open source code.

Field

intSTORED
Compression method for uncompressed (STORED) entries.
intDEFLATED
Compression method for compressed (DEFLATED) entries.

Constructor

ZipOutputStream(OutputStream out)
Creates a new ZIP output stream.
ZipOutputStream(OutputStream out, Charset charset)
Creates a new ZIP output stream.

Method

voidclose()
Closes the ZIP output stream as well as the stream being filtered.
voidcloseEntry()
Closes the current ZIP entry and positions the stream for writing the next entry.
voidfinish()
Finishes writing the contents of the ZIP output stream without closing the underlying stream.
voidflush()
Flushes the compressed output stream.
voidputNextEntry(ZipEntry e)
Begins writing a new ZIP file entry and positions the stream to the start of the entry data.
voidsetComment(String comment)
Sets the ZIP file comment.
voidsetLevel(int level)
Sets the compression level for subsequent entries which are DEFLATED.
voidsetMethod(int method)
Sets the default compression method for subsequent entries.
voidwrite(byte[] b, int off, int len)
Writes an array of bytes to the current ZIP entry data.
voidwrite(int b)
Writes a byte to the compressed output stream.