org.apache.poi.hslf.usermodel
Class HSLFSlideShowEncrypted

java.lang.Object
  extended by org.apache.poi.hslf.usermodel.HSLFSlideShowEncrypted

@Internal
public class HSLFSlideShowEncrypted
extends java.lang.Object

This class provides helper functions for encrypted PowerPoint documents.


Constructor Summary
protected HSLFSlideShowEncrypted(byte[] docstream, java.util.NavigableMap<java.lang.Integer,Record> recordMap)
           
protected HSLFSlideShowEncrypted(DocumentEncryptionAtom dea)
           
 
Method Summary
protected static Record[] addEncryptionRecord(Record[] records, DocumentEncryptionAtom dea)
           
protected  void decryptInit()
           
protected  void decryptPicture(byte[] pictstream, int offset)
           
protected  void decryptRecord(byte[] docstream, int persistId, int offset)
           
protected  void encryptInit()
           
protected  void encryptPicture(byte[] pictstream, int offset)
           
protected  java.io.OutputStream encryptRecord(java.io.OutputStream plainStream, int persistId, Record record)
           
 DocumentEncryptionAtom getDocumentEncryptionAtom()
           
protected static Record[] normalizeRecords(Record[] records)
          remove duplicated UserEditAtoms and merge PersistPtrHolder.
protected static Record[] removeEncryptionRecord(Record[] records)
           
protected  void setPersistId(int persistId)
           
protected  Record[] updateEncryptionRecord(Record[] records)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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()

setPersistId

protected void setPersistId(int persistId)

decryptInit

protected void decryptInit()

encryptInit

protected void encryptInit()

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)


Copyright 2016 The Apache Software Foundation or its licensors, as applicable.