NPOIFS and OPC both support close(), so mark them as such

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1100013 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2011-05-06 01:19:21 +00:00
parent 028b9652f8
commit 268404a200
2 changed files with 4 additions and 2 deletions

View 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);

View 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.