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 longgetEncryptionKey(ZipParameters zipParameters) protected StandardEncrypterinitializeEncrypter(OutputStream outputStream, ZipParameters zipParameters, char[] password, boolean useUtf8ForPassword) voidwrite(byte[] b) voidwrite(byte[] b, int off, int len) voidwrite(int b) Methods inherited from class CipherOutputStream
close, closeEntry, getEncrypter, getNumberOfBytesWrittenForThisEntry, writeHeadersMethods inherited from class 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:
initializeEncrypterin classCipherOutputStream<StandardEncrypter>- Throws:
IOException
-
write
- Overrides:
writein classCipherOutputStream<StandardEncrypter>- Throws:
IOException
-
write
- Overrides:
writein classCipherOutputStream<StandardEncrypter>- Throws:
IOException
-
write
- Overrides:
writein classCipherOutputStream<StandardEncrypter>- Throws:
IOException
-
getEncryptionKey
-