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 long
getEncryptionKey(ZipParameters zipParameters)
protected StandardEncrypter
initializeEncrypter(java.io.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
-
-
-
-
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:
initializeEncrypter
in classCipherOutputStream<StandardEncrypter>
- Throws:
java.io.IOException
-
write
public void write(int b) throws java.io.IOException
- Overrides:
write
in classCipherOutputStream<StandardEncrypter>
- Throws:
java.io.IOException
-
write
public void write(byte[] b) throws java.io.IOException
- Overrides:
write
in classCipherOutputStream<StandardEncrypter>
- Throws:
java.io.IOException
-
write
public void write(byte[] b, int off, int len) throws java.io.IOException
- Overrides:
write
in classCipherOutputStream<StandardEncrypter>
- Throws:
java.io.IOException
-
getEncryptionKey
private long getEncryptionKey(ZipParameters zipParameters)
-
-