Class ZipStandardCipherOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- net.lingala.zip4j.io.outputstream.CipherOutputStream<StandardEncrypter>
-
- net.lingala.zip4j.io.outputstream.ZipStandardCipherOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
class ZipStandardCipherOutputStream extends CipherOutputStream<StandardEncrypter>
-
-
Constructor Summary
Constructors Constructor Description ZipStandardCipherOutputStream(ZipEntryOutputStream outputStream, ZipParameters zipParameters, char[] password, boolean useUtf8ForPassword)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private longgetEncryptionKey(ZipParameters zipParameters)protected StandardEncrypterinitializeEncrypter(java.io.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 net.lingala.zip4j.io.outputstream.CipherOutputStream
close, closeEntry, getEncrypter, getNumberOfBytesWrittenForThisEntry, writeHeaders
-
-
-
-
Constructor Detail
-
ZipStandardCipherOutputStream
public ZipStandardCipherOutputStream(ZipEntryOutputStream outputStream, ZipParameters zipParameters, char[] password, boolean useUtf8ForPassword) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
initializeEncrypter
protected StandardEncrypter initializeEncrypter(java.io.OutputStream outputStream, ZipParameters zipParameters, char[] password, boolean useUtf8ForPassword) throws java.io.IOException
- Specified by:
initializeEncrypterin classCipherOutputStream<StandardEncrypter>- Throws:
java.io.IOException
-
write
public void write(int b) throws java.io.IOException- Overrides:
writein classCipherOutputStream<StandardEncrypter>- Throws:
java.io.IOException
-
write
public void write(byte[] b) throws java.io.IOException- Overrides:
writein classCipherOutputStream<StandardEncrypter>- Throws:
java.io.IOException
-
write
public void write(byte[] b, int off, int len) throws java.io.IOException- Overrides:
writein classCipherOutputStream<StandardEncrypter>- Throws:
java.io.IOException
-
getEncryptionKey
private long getEncryptionKey(ZipParameters zipParameters)
-
-