@Internal public abstract class ChunkedCipherOutputStream extends FilterOutputStream
| Constructor and Description |
|---|
ChunkedCipherOutputStream(DirectoryNode dir,
int chunkSize) |
ChunkedCipherOutputStream(OutputStream stream,
int chunkSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Cipher |
initCipherForBlock(int block,
boolean lastChunk) |
void |
setNextRecordSize(int recordSize,
boolean isPlain)
Some ciphers (actually just XOR) are based on the record size,
which needs to be set before encryption
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
void |
writePlain(byte[] b,
int off,
int len) |
flushpublic ChunkedCipherOutputStream(DirectoryNode dir, int chunkSize) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionpublic ChunkedCipherOutputStream(OutputStream stream, int chunkSize) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionpublic final Cipher initCipherForBlock(int block, boolean lastChunk) 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 FilterOutputStreamIOExceptionpublic void writePlain(byte[] b,
int off,
int len)
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOExceptionpublic void setNextRecordSize(int recordSize,
boolean isPlain)
recordSize - the size of the next recordisPlain - true if the record is unencryptedCopyright © 2010 - 2020 Adobe. All Rights Reserved