| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final int | |
| private final int | |
| private Cipher | |
| private final DirectoryNode | |
| private final File | |
| private boolean | |
| private static final Logger | |
| private final SparseBitSet | |
| private long | |
| private static final int | |
| private long | |
| private long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | |
| public void | close()
Overrides java. Implements java. Closes this output stream and releases any system resources associated with the stream. |
| protected abstract void | |
| protected byte[] | |
| protected int | |
| protected SparseBitSet | |
| protected long | |
| protected long | |
| public final Cipher | |
| protected abstract Cipher | |
| protected Cipher | |
| protected int | invokeCipher(int posInChunk, boolean doFinal)
Helper function for overriding the cipher invocation, i.e. XOR doesn't use a cipher and uses its own implementation |
| private void | |
| public void | setNextRecordSize(int
the size of the next record recordSize, boolean true if the record is unencryptedSome ciphers (actually just XOR) are based on the record size, which needs to be set before encryption |
| public void | write(int
the b)byte.Overrides java. Writes the specified |
| public void | write(byte[]
the data to be written. b)Overrides java. Writes |
| public void | write(byte[]
the data. b, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. Writes |
| protected void | |
| protected void | |
| public void |
| chunk | back to summary |
|---|---|
| private final byte[] chunk | |
| chunkBits | back to summary |
|---|---|
| private final int chunkBits | |
| chunkSize | back to summary |
|---|---|
| private final int chunkSize | |
| cipher | back to summary |
|---|---|
| private Cipher cipher | |
| dir | back to summary |
|---|---|
| private final DirectoryNode dir | |
| fileOut | back to summary |
|---|---|
| private final File fileOut | |
| isClosed | back to summary |
|---|---|
| private boolean isClosed | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| plainByteFlags | back to summary |
|---|---|
| private final SparseBitSet plainByteFlags | |
| pos | back to summary |
|---|---|
| private long pos | |
| STREAMING | back to summary |
|---|---|
| private static final int STREAMING | |
| totalPos | back to summary |
|---|---|
| private long totalPos | |
| written | back to summary |
|---|---|
| private long written | |
| ChunkedCipherOutputStream | back to summary |
|---|---|
| public ChunkedCipherOutputStream(DirectoryNode dir, int chunkSize) throws IOException, GeneralSecurityException | |
| ChunkedCipherOutputStream | back to summary |
|---|---|
| public ChunkedCipherOutputStream(OutputStream stream, int chunkSize) throws IOException, GeneralSecurityException | |
| calculateChecksum | back to summary |
|---|---|
| protected abstract void calculateChecksum(File fileOut, int oleStreamSize) throws GeneralSecurityException, IOException | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources associated with the stream.
| |
| createEncryptionInfoEntry | back to summary |
|---|---|
| protected abstract void createEncryptionInfoEntry(DirectoryNode dir, File tmpFile) throws IOException, GeneralSecurityException | |
| getChunk | back to summary |
|---|---|
| protected byte[] getChunk() | |
| getChunkMask | back to summary |
|---|---|
| protected int getChunkMask() | |
| getPlainByteFlags | back to summary |
|---|---|
| protected SparseBitSet getPlainByteFlags() | |
| getPos | back to summary |
|---|---|
| protected long getPos() | |
| getTotalPos | back to summary |
|---|---|
| protected long getTotalPos() | |
| initCipherForBlock | back to summary |
|---|---|
| public final Cipher initCipherForBlock(int block, boolean lastChunk) throws IOException, GeneralSecurityException | |
| initCipherForBlock | back to summary |
|---|---|
| protected abstract Cipher initCipherForBlock(Cipher existing, int block, boolean lastChunk) throws IOException, GeneralSecurityException | |
| initCipherForBlockNoFlush | back to summary |
|---|---|
protected Cipher initCipherForBlockNoFlush(Cipher existing, int block, boolean lastChunk) throws IOException, GeneralSecurityException
| |
| invokeCipher | back to summary |
|---|---|
| protected int invokeCipher(int posInChunk, boolean doFinal) throws GeneralSecurityException, IOException Helper function for overriding the cipher invocation, i.e. XOR doesn't use a cipher and uses its own implementation | |
| processPOIFSWriterEvent | back to summary |
|---|---|
| private void processPOIFSWriterEvent(POIFSWriterEvent event) | |
| setNextRecordSize | back to summary |
|---|---|
| public void setNextRecordSize(int recordSize, boolean isPlain) Some ciphers (actually just XOR) are based on the record size, which needs to be set before encryption
| |
| write | back to summary |
|---|---|
| public void write(int b) throws IOException Overrides java. Doc from java. Writes the specified
The
Implements the abstract
| |
| write | back to summary |
|---|---|
| public void write(byte[] b) throws IOException Overrides java. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| public void write(byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| protected void write(byte[] b, int off, int len, boolean writePlain) throws IOException | |
| writeChunk | back to summary |
|---|---|
| protected void writeChunk(boolean continued) throws IOException | |
| writePlain | back to summary |
|---|---|
| public void writePlain(byte[] b, int off, int len) throws IOException | |