@Internal public abstract class ChunkedCipherOutputStream extends java.io.FilterOutputStream
Constructor and Description |
---|
ChunkedCipherOutputStream(DirectoryNode dir,
int chunkSize) |
ChunkedCipherOutputStream(java.io.OutputStream stream,
int chunkSize) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
javax.crypto.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) |
public ChunkedCipherOutputStream(DirectoryNode dir, int chunkSize) throws java.io.IOException, java.security.GeneralSecurityException
java.io.IOException
java.security.GeneralSecurityException
public ChunkedCipherOutputStream(java.io.OutputStream stream, int chunkSize) throws java.io.IOException, java.security.GeneralSecurityException
java.io.IOException
java.security.GeneralSecurityException
public final javax.crypto.Cipher initCipherForBlock(int block, boolean lastChunk) throws java.io.IOException, java.security.GeneralSecurityException
java.io.IOException
java.security.GeneralSecurityException
public void write(int b) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
public void write(byte[] b) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
public void writePlain(byte[] b, int off, int len) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.FilterOutputStream
java.io.IOException
public void setNextRecordSize(int recordSize, boolean isPlain)
recordSize
- the size of the next recordisPlain
- true
if the record is unencryptedCopyright © 2010 - 2019 Adobe. All Rights Reserved