Class AesCipherOutputStream
java.lang.Object
java.io.OutputStream
net.lingala.zip4j.io.outputstream.CipherOutputStream<AESEncrypter>
net.lingala.zip4j.io.outputstream.AesCipherOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAesCipherOutputStream
(ZipEntryOutputStream outputStream, ZipParameters zipParameters, char[] password, boolean useUtf8ForPassword) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected AESEncrypter
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) private void
writeAesEncryptionHeaderData
(AESEncrypter encrypter) Methods inherited from class net.lingala.zip4j.io.outputstream.CipherOutputStream
close, getEncrypter, getNumberOfBytesWrittenForThisEntry, writeHeaders
Methods inherited from class java.io.OutputStream
flush
-
Field Details
-
pendingBuffer
private byte[] pendingBuffer -
pendingBufferLength
private int pendingBufferLength
-
-
Constructor Details
-
AesCipherOutputStream
public AesCipherOutputStream(ZipEntryOutputStream outputStream, ZipParameters zipParameters, char[] password, boolean useUtf8ForPassword) throws IOException - Throws:
IOException
-
-
Method Details
-
initializeEncrypter
protected AESEncrypter initializeEncrypter(OutputStream outputStream, ZipParameters zipParameters, char[] password, boolean useUtf8ForPassword) throws IOException - Specified by:
initializeEncrypter
in classCipherOutputStream<AESEncrypter>
- Throws:
IOException
-
writeAesEncryptionHeaderData
- Throws:
IOException
-
write
- Overrides:
write
in classCipherOutputStream<AESEncrypter>
- Throws:
IOException
-
write
- Overrides:
write
in classCipherOutputStream<AESEncrypter>
- Throws:
IOException
-
write
- Overrides:
write
in classCipherOutputStream<AESEncrypter>
- Throws:
IOException
-
closeEntry
- Overrides:
closeEntry
in classCipherOutputStream<AESEncrypter>
- Throws:
IOException
-