@Internal public abstract class ChunkedCipherOutputStream extends FilterOutputStream
| Modifier and Type | Field and Description |
|---|---|
protected int |
chunkBits |
protected int |
chunkMask |
protected int |
chunkSize |
out| Constructor and Description |
|---|
ChunkedCipherOutputStream(DirectoryNode dir,
int chunkSize) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
calculateChecksum(File fileOut,
int oleStreamSize) |
void |
close() |
protected abstract void |
createEncryptionInfoEntry(DirectoryNode dir,
File tmpFile) |
protected abstract Cipher |
initCipherForBlock(Cipher existing,
int block,
boolean lastChunk) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
protected void |
writeChunk() |
flushprotected final int chunkSize
protected final int chunkMask
protected final int chunkBits
public ChunkedCipherOutputStream(DirectoryNode dir, int chunkSize) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionprotected abstract Cipher initCipherForBlock(Cipher existing, int block, boolean lastChunk) throws GeneralSecurityException
GeneralSecurityExceptionprotected abstract void calculateChecksum(File fileOut, int oleStreamSize) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionprotected abstract void createEncryptionInfoEntry(DirectoryNode dir, File tmpFile) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionpublic void write(int b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class FilterOutputStreamIOExceptionprotected void writeChunk()
throws IOException,
GeneralSecurityException
IOExceptionGeneralSecurityExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOExceptionCopyright © 2007-2020. All Rights Reserved.