Class ZipStandardCipherOutputStream
java.lang.Object
java.io.OutputStream
net.lingala.zip4j.io.outputstream.CipherOutputStream<StandardEncrypter>
net.lingala.zip4j.io.outputstream.ZipStandardCipherOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionZipStandardCipherOutputStream
(ZipEntryOutputStream outputStream, ZipParameters zipParameters, char[] password, boolean useUtf8ForPassword) -
Method Summary
Modifier and TypeMethodDescriptionprivate long
getEncryptionKey
(ZipParameters zipParameters) protected StandardEncrypter
initializeEncrypter
(OutputStream outputStream, ZipParameters zipParameters, char[] password, boolean useUtf8ForPassword) void
write
(byte[] b) void
write
(byte[] b, int off, int len) void
write
(int b) Methods inherited from class net.lingala.zip4j.io.outputstream.CipherOutputStream
close, closeEntry, getEncrypter, getNumberOfBytesWrittenForThisEntry, writeHeaders
Methods inherited from class java.io.OutputStream
flush
-
Constructor Details
-
ZipStandardCipherOutputStream
public ZipStandardCipherOutputStream(ZipEntryOutputStream outputStream, ZipParameters zipParameters, char[] password, boolean useUtf8ForPassword) throws IOException - Throws:
IOException
-
-
Method Details
-
initializeEncrypter
protected StandardEncrypter initializeEncrypter(OutputStream outputStream, ZipParameters zipParameters, char[] password, boolean useUtf8ForPassword) throws IOException - Specified by:
initializeEncrypter
in classCipherOutputStream<StandardEncrypter>
- Throws:
IOException
-
write
- Overrides:
write
in classCipherOutputStream<StandardEncrypter>
- Throws:
IOException
-
write
- Overrides:
write
in classCipherOutputStream<StandardEncrypter>
- Throws:
IOException
-
write
- Overrides:
write
in classCipherOutputStream<StandardEncrypter>
- Throws:
IOException
-
getEncryptionKey
-