Class BinaryRC4Encryptor.BinaryRC4CipherOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.apache.poi.poifs.crypt.ChunkedCipherOutputStream
org.apache.poi.poifs.crypt.binaryrc4.BinaryRC4Encryptor.BinaryRC4CipherOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Enclosing class:
- BinaryRC4Encryptor
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcalculateChecksum(File file, int i) protected voidcreateEncryptionInfoEntry(DirectoryNode dir, File tmpFile) voidflush()protected CipherinitCipherForBlock(Cipher cipher, int block, boolean lastChunk) Methods inherited from class org.apache.poi.poifs.crypt.ChunkedCipherOutputStream
close, getChunk, getChunkMask, getPlainByteFlags, getPos, getTotalPos, initCipherForBlock, invokeCipher, setNextRecordSize, write, write, write, write, writeChunk, writePlainMethods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
BinaryRC4CipherOutputStream
public BinaryRC4CipherOutputStream(OutputStream stream) throws IOException, GeneralSecurityException - Throws:
IOExceptionGeneralSecurityException
-
BinaryRC4CipherOutputStream
- Throws:
IOExceptionGeneralSecurityException
-
-
Method Details
-
initCipherForBlock
protected Cipher initCipherForBlock(Cipher cipher, int block, boolean lastChunk) throws GeneralSecurityException - Specified by:
initCipherForBlockin classChunkedCipherOutputStream- Throws:
GeneralSecurityException
-
calculateChecksum
- Specified by:
calculateChecksumin classChunkedCipherOutputStream
-
createEncryptionInfoEntry
protected void createEncryptionInfoEntry(DirectoryNode dir, File tmpFile) throws IOException, GeneralSecurityException - Specified by:
createEncryptionInfoEntryin classChunkedCipherOutputStream- Throws:
IOExceptionGeneralSecurityException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classFilterOutputStream- Throws:
IOException
-