Java org.apache.commons.compress.archivers.jar JarArchiveOutputStream fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.compress.archivers.jar JarArchiveOutputStream fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.compress.archivers.jar JarArchiveOutputStream.

The text is from its open source code.

Constructor

Method

voidclose()
Closes this output stream and releases any system resources associated with the stream.
voidcloseArchiveEntry()
Writes all necessary data for this entry.
voidfinish()
voidflush()
Flushes this output stream and forces any buffered output bytes to be written out to the stream.
voidputArchiveEntry(ArchiveEntry ze)
voidsetComment(String comment)
Set the file comment.
voidsetCreateUnicodeExtraFields(UnicodeExtraFieldPolicy b)
Whether to create Unicode Extra Fields.
voidsetEncoding(final String encoding)
The encoding to use for filenames and the file comment.
voidsetFallbackToUTF8(boolean b)
Whether to fall back to UTF and the language encoding flag if the file name cannot be encoded using the specified encoding.
voidsetLevel(int level)
Sets the compression level for subsequent entries.
voidsetUseLanguageEncodingFlag(boolean b)
Whether to set the language encoding flag if the file name encoding is UTF-8.
voidwrite(int b)
Writes a byte to the current archive entry.
voidwrite(byte[] b, int offset, int length)
Writes bytes to ZIP entry.