Package org.apache.poi.hslf.usermodel
Class HSLFSlideShowEncrypted
- java.lang.Object
-
- org.apache.poi.hslf.usermodel.HSLFSlideShowEncrypted
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
@Internal public class HSLFSlideShowEncrypted extends java.lang.Object implements java.io.Closeable
This class provides helper functions for encrypted PowerPoint documents.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHSLFSlideShowEncrypted(byte[] docstream, java.util.NavigableMap<java.lang.Integer,Record> recordMap)protectedHSLFSlideShowEncrypted(DocumentEncryptionAtom dea)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static Record[]addEncryptionRecord(Record[] records, DocumentEncryptionAtom dea)voidclose()protected voiddecryptPicture(byte[] pictstream, int offset)protected voiddecryptRecord(byte[] docstream, int persistId, int offset)protected voidencryptPicture(byte[] pictstream, int offset)protected java.io.OutputStreamencryptRecord(java.io.OutputStream plainStream, int persistId, Record record)DocumentEncryptionAtomgetDocumentEncryptionAtom()protected EncryptionInfogetEncryptionInfo()protected static Record[]normalizeRecords(Record[] records)remove duplicated UserEditAtoms and merge PersistPtrHolder.protected static Record[]removeEncryptionRecord(Record[] records)protected Record[]updateEncryptionRecord(Record[] records)
-
-
-
Constructor Detail
-
HSLFSlideShowEncrypted
protected HSLFSlideShowEncrypted(DocumentEncryptionAtom dea)
-
HSLFSlideShowEncrypted
protected HSLFSlideShowEncrypted(byte[] docstream, java.util.NavigableMap<java.lang.Integer,Record> recordMap)
-
-
Method Detail
-
getDocumentEncryptionAtom
public DocumentEncryptionAtom getDocumentEncryptionAtom()
-
getEncryptionInfo
protected EncryptionInfo getEncryptionInfo()
-
encryptRecord
protected java.io.OutputStream encryptRecord(java.io.OutputStream plainStream, int persistId, Record record)
-
decryptRecord
protected void decryptRecord(byte[] docstream, int persistId, int offset)
-
decryptPicture
protected void decryptPicture(byte[] pictstream, int offset)
-
encryptPicture
protected void encryptPicture(byte[] pictstream, int offset)
-
normalizeRecords
protected static Record[] normalizeRecords(Record[] records)
remove duplicated UserEditAtoms and merge PersistPtrHolder. Before this method is called, make sure that the offsets are correct, i.e. callHSLFSlideShowImpl.updateAndWriteDependantRecords(OutputStream, Map)
-
addEncryptionRecord
protected static Record[] addEncryptionRecord(Record[] records, DocumentEncryptionAtom dea)
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-