Package org.apache.poi.hslf.usermodel
Class HSLFSlideShowEncrypted
- java.lang.Object
-
- org.apache.poi.hslf.usermodel.HSLFSlideShowEncrypted
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
@Internal public class HSLFSlideShowEncrypted extends Object implements Closeable
This class provides helper functions for encrypted PowerPoint documents.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HSLFSlideShowEncrypted(byte[] docstream, NavigableMap<Integer,Record> recordMap)
protected
HSLFSlideShowEncrypted(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)
void
close()
protected void
decryptPicture(byte[] pictstream, int offset)
protected void
decryptRecord(byte[] docstream, int persistId, int offset)
protected void
encryptPicture(byte[] pictstream, int offset)
protected OutputStream
encryptRecord(OutputStream plainStream, int persistId, Record record)
DocumentEncryptionAtom
getDocumentEncryptionAtom()
protected EncryptionInfo
getEncryptionInfo()
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, NavigableMap<Integer,Record> recordMap)
-
-
Method Detail
-
getDocumentEncryptionAtom
public DocumentEncryptionAtom getDocumentEncryptionAtom()
-
getEncryptionInfo
protected EncryptionInfo getEncryptionInfo()
-
encryptRecord
protected OutputStream encryptRecord(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 IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-