@Override public void flush() throws IOException { writeChunk(false); super.flush(); } }
@Override public void flush() throws IOException { setNextRecordSize(0, true); super.flush(); }
@Override public void flush() throws IOException { writeChunk(false); super.flush(); } }
@Override public void flush() throws IOException { setNextRecordSize(0, true); super.flush(); }
@Override public void flush() throws IOException { writeChunk(false); super.flush(); } }
@Override public void flush() throws IOException { writeChunk(false); super.flush(); } }
ccos.flush(); offset += 8; int endOffset = offset + rlen; ccos.flush(); offset += part; ccos.flush(); offset += cbName; recType = LittleEndian.getUShort(pictstream, offset+2); ccos.write(pictstream, offset, 8); ccos.flush(); offset += 8; ccos.flush(); offset += 16; ccos.write(pictstream, offset, 34); // metafileHeader offset += 34; ccos.flush(); } else { ccos.write(pictstream, offset, 1); // tag offset += 1; ccos.flush(); ccos.flush(); } catch (Exception e) { throw new EncryptedPowerPointFileException(e);
protected OutputStream encryptRecord(OutputStream plainStream, int persistId, Record record) { boolean isPlain = (dea == null || record instanceof UserEditAtom || record instanceof PersistPtrHolder || record instanceof DocumentEncryptionAtom ); try { if (isPlain) { if (cyos != null) { // write cached data to stream cyos.flush(); } return plainStream; } if (cyos == null) { Encryptor enc = getEncryptionInfo().getEncryptor(); enc.setChunkSize(-1); cyos = enc.getDataStream(plainStream, 0); } cyos.initCipherForBlock(persistId, false); } catch (Exception e) { throw new EncryptedPowerPointFileException(e); } return cyos; }