protected class CryptoAPIEncryptor.CryptoAPICipherOutputStream extends ChunkedCipherOutputStream
Modifier and Type | Method and Description |
---|---|
protected void |
calculateChecksum(java.io.File file, int i) |
protected void |
createEncryptionInfoEntry(DirectoryNode dir, java.io.File tmpFile) |
void |
flush() |
protected javax.crypto.Cipher |
initCipherForBlock(javax.crypto.Cipher cipher, int block, boolean lastChunk) |
protected javax.crypto.Cipher |
initCipherForBlockNoFlush(javax.crypto.Cipher existing, int block, boolean lastChunk) |
close, getChunk, getChunkMask, getPlainByteFlags, getPos, getTotalPos, initCipherForBlock, invokeCipher, setNextRecordSize, write, write, write, write, writeChunk, writePlain
protected javax.crypto.Cipher initCipherForBlock(javax.crypto.Cipher cipher, int block, boolean lastChunk) throws java.io.IOException, java.security.GeneralSecurityException
initCipherForBlock
in class
ChunkedCipherOutputStream
(类 ChunkedCipherOutputStream 中的 initCipherForBlock)
java.io.IOException
(java.io.IOException)
java.security.GeneralSecurityException
(java.security.GeneralSecurityException)
protected javax.crypto.Cipher initCipherForBlockNoFlush(javax.crypto.Cipher existing, int block, boolean lastChunk) throws java.security.GeneralSecurityException
initCipherForBlockNoFlush
in class
ChunkedCipherOutputStream
java.security.GeneralSecurityException
(java.security.GeneralSecurityException)
protected void calculateChecksum(java.io.File file, int i)
calculateChecksum
in class
ChunkedCipherOutputStream
(类 ChunkedCipherOutputStream 中的 calculateChecksum)
protected void createEncryptionInfoEntry(DirectoryNode dir, java.io.File tmpFile)
createEncryptionInfoEntry
in class
ChunkedCipherOutputStream
(类 ChunkedCipherOutputStream 中的 createEncryptionInfoEntry)
public void flush() throws java.io.IOException
flush
in interface
java.io.Flushable
(在接口 java.io.Flushable 中刷新)
flush
in class
java.io.FilterOutputStream
java.io.IOException
(java.io.IOException)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.