Class 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 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