com.healthmarketscience.jackcess.impl
Class CompoundOleUtil

java.lang.Object
  extended by com.healthmarketscience.jackcess.impl.CompoundOleUtil

public class CompoundOleUtil
extends Object

Utility code for working with OLE data which is in the compound storage format. This functionality relies on the optional POI library.

Note that all POI usage is restricted to this file so that the basic ole support in OleUtil can be utilized without requiring POI.

Author:
James Ahlborn
Usage:
Advanced: This class is for advanced/internal use.

Constructor Summary
CompoundOleUtil()
           
 
Method Summary
 com.healthmarketscience.jackcess.impl.OleUtil.ContentImpl createCompoundPackageContent(com.healthmarketscience.jackcess.impl.OleUtil.OleBlobImpl blob, String prettyName, String className, String typeName, ByteBuffer blobBb, int dataBlockLen)
          Creates a nes CompoundContent for the given blob information.
static org.apache.poi.poifs.filesystem.DocumentEntry getDocumentEntry(String entryName, org.apache.poi.poifs.filesystem.DirectoryEntry dir)
          Gets a DocumentEntry from compound storage based on a fully qualified, encoded entry name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompoundOleUtil

public CompoundOleUtil()
Method Detail

createCompoundPackageContent

public com.healthmarketscience.jackcess.impl.OleUtil.ContentImpl createCompoundPackageContent(com.healthmarketscience.jackcess.impl.OleUtil.OleBlobImpl blob,
                                                                                              String prettyName,
                                                                                              String className,
                                                                                              String typeName,
                                                                                              ByteBuffer blobBb,
                                                                                              int dataBlockLen)
Creates a nes CompoundContent for the given blob information.


getDocumentEntry

public static org.apache.poi.poifs.filesystem.DocumentEntry getDocumentEntry(String entryName,
                                                                             org.apache.poi.poifs.filesystem.DirectoryEntry dir)
                                                                      throws IOException
Gets a DocumentEntry from compound storage based on a fully qualified, encoded entry name.

Parameters:
entryName - fully qualified, encoded entry name
dir - root directory of the compound storage
Returns:
the relevant DocumentEntry
Throws:
FileNotFoundException - if the entry does not exist
IOException - if some other io error occurs


Copyright © 2005–2017 Health Market Science. All rights reserved.