Class ZipOutputStream
java.lang.Object
java.io.OutputStream
net.lingala.zip4j.io.outputstream.ZipOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionZipOutputStream(OutputStream outputStream) ZipOutputStream(OutputStream outputStream, char[] password) ZipOutputStream(OutputStream outputStream, char[] password, Charset charset) ZipOutputStream(OutputStream outputStream, char[] password, Zip4jConfig zip4jConfig, ZipModel zipModel) ZipOutputStream(OutputStream outputStream, Charset charset) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidputNextEntry(ZipParameters zipParameters) voidsetComment(String comment) voidwrite(byte[] b) voidwrite(byte[] b, int off, int len) voidwrite(int b) Methods inherited from class java.io.OutputStream
flush
-
Constructor Details
-
ZipOutputStream
- Throws:
IOException
-
ZipOutputStream
- Throws:
IOException
-
ZipOutputStream
- Throws:
IOException
-
ZipOutputStream
public ZipOutputStream(OutputStream outputStream, char[] password, Charset charset) throws IOException - Throws:
IOException
-
ZipOutputStream
public ZipOutputStream(OutputStream outputStream, char[] password, Zip4jConfig zip4jConfig, ZipModel zipModel) throws IOException - Throws:
IOException
-
-
Method Details
-
putNextEntry
- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
closeEntry
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
setComment
- Throws:
IOException
-