Example usage for Java org.apache.commons.compress.archivers.zip ZipArchiveOutputStream fields, constructors, methods, implement or subclass
The text is from its open source code.
ZipArchiveOutputStream(OutputStream out) Creates a new ZIP OutputStream filtering the underlying stream. | |
ZipArchiveOutputStream(File file) Creates a new ZIP OutputStream writing to a File. |
void | close() Closes this output stream and releases any system resources associated with the stream. |
void | closeArchiveEntry() Writes all necessary data for this entry. |
ArchiveEntry | createArchiveEntry(File inputFile, String entryName) Creates a new zip entry taking some information from the given file and using the provided name. |
void | finish() |
void | flush() Flushes this output stream and forces any buffered output bytes to be written out to the stream. |
long | getBytesWritten() Returns the current number of bytes written to this stream. |
String | getEncoding() The encoding to use for filenames and the file comment. |
void | putArchiveEntry(ArchiveEntry archiveEntry) |
void | setComment(String comment) Set the file comment. |
void | setCreateUnicodeExtraFields(UnicodeExtraFieldPolicy b) Whether to create Unicode Extra Fields. |
void | setEncoding(final String encoding) The encoding to use for filenames and the file comment. |
void | setFallbackToUTF8(boolean b) Whether to fall back to UTF and the language encoding flag if the file name cannot be encoded using the specified encoding. |
void | setLevel(int level) Sets the compression level for subsequent entries. |
void | setMethod(int method) Sets the default compression method for subsequent entries. |
void | setUseLanguageEncodingFlag(boolean b) Whether to set the language encoding flag if the file name encoding is UTF-8. |
void | write(byte[] b, int offset, int length) Writes bytes to ZIP entry. |
void | write(int b) Writes a byte to the current archive entry. |