Java java.util.jar JarOutputStream fields, constructors, methods, implement or subclass

Example usage for Java java.util.jar JarOutputStream fields, constructors, methods, implement or subclass

Introduction

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

The text is from its open source code.

Constructor

JarOutputStream(OutputStream out)
Creates a new JarOutputStream with no manifest.
JarOutputStream(OutputStream out, Manifest man)
Creates a new JarOutputStream with the specified Manifest.

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 ze)
Begins writing a new JAR file entry and positions the stream to the start of the entry data.
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.