Class OPCPackageWrapper

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class OPCPackageWrapper
    extends java.lang.Object
    implements java.io.Closeable
    This is a wrapper around OPCPackage that calls revert() instead of close(). We added this during the upgrade of POI to 5.x to avoid a warning. TIKA-3663
    • Constructor Summary

      Constructors 
      Constructor Description
      OPCPackageWrapper​(org.apache.poi.openxml4j.opc.OPCPackage opcPackage)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      org.apache.poi.openxml4j.opc.OPCPackage getOPCPackage()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OPCPackageWrapper

        public OPCPackageWrapper​(org.apache.poi.openxml4j.opc.OPCPackage opcPackage)
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • getOPCPackage

        public org.apache.poi.openxml4j.opc.OPCPackage getOPCPackage()