]> source.dussan.org Git - poi.git/commitdiff
NPOIFS and OPC both support close(), so mark them as such
authorNick Burch <nick@apache.org>
Fri, 6 May 2011 01:19:21 +0000 (01:19 +0000)
committerNick Burch <nick@apache.org>
Fri, 6 May 2011 01:19:21 +0000 (01:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1100013 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/poifs/filesystem/NPOIFSFileSystem.java
src/ooxml/java/org/apache/poi/openxml4j/opc/OPCPackage.java

index b15df9bd4cc7b9c851676058572c1d81d1f5f807..8b2f9e9ea201feed05e1733d309f29cdd10c0ed8 100644 (file)
@@ -19,6 +19,7 @@
 
 package org.apache.poi.poifs.filesystem;
 
+import java.io.Closeable;
 import java.io.File;
 import java.io.FileInputStream;
 import java.io.FileOutputStream;
@@ -64,7 +65,7 @@ import org.apache.poi.util.POILogger;
  */
 
 public class NPOIFSFileSystem extends BlockStore
-    implements POIFSViewable
+    implements POIFSViewable, Closeable
 {
        private static final POILogger _logger =
                POILogFactory.getLogger(NPOIFSFileSystem.class);
index 8be4fa9f1448171c0afb073274c1120a283747e3..a031a5f662cbb95dd34b74d4cfbcf85d735767f3 100644 (file)
@@ -18,6 +18,7 @@
 package org.apache.poi.openxml4j.opc;
 
 import java.io.ByteArrayOutputStream;
+import java.io.Closeable;
 import java.io.File;
 import java.io.FileInputStream;
 import java.io.FileNotFoundException;
@@ -56,7 +57,7 @@ import org.apache.poi.util.POILogFactory;
  * @author Julien Chable, CDubet
  * @version 0.1
  */
-public abstract class OPCPackage implements RelationshipSource {
+public abstract class OPCPackage implements RelationshipSource, Closeable {
 
        /**
         * Logger.