org.apache.poi.hslf.usermodel
Class HSLFSlideShowEncrypted
java.lang.Object
org.apache.poi.hslf.usermodel.HSLFSlideShowEncrypted
- All Implemented Interfaces:
- java.io.Closeable
@Internal
public class HSLFSlideShowEncrypted
- extends java.lang.Object
- implements java.io.Closeable
This class provides helper functions for encrypted PowerPoint documents.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HSLFSlideShowEncrypted
protected HSLFSlideShowEncrypted(DocumentEncryptionAtom dea)
HSLFSlideShowEncrypted
protected HSLFSlideShowEncrypted(byte[] docstream,
java.util.NavigableMap<java.lang.Integer,Record> recordMap)
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)
updateEncryptionRecord
protected Record[] updateEncryptionRecord(Record[] records)
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. call
HSLFSlideShowImpl.updateAndWriteDependantRecords(OutputStream, Map)
removeEncryptionRecord
protected static Record[] removeEncryptionRecord(Record[] records)
addEncryptionRecord
protected static Record[] addEncryptionRecord(Record[] records,
DocumentEncryptionAtom dea)
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Throws:
java.io.IOException
Copyright 2017 The Apache Software Foundation or
its licensors, as applicable.