* ArchiveReader.java

add "implements Closeable" since it already has the close() method
This commit is contained in:
Noah Levitt
2012-12-03 17:09:22 -08:00
parent 92b302f164
commit b981fd7423
@@ -22,6 +22,7 @@ package org.archive.io;
import java.io.BufferedInputStream;
import java.io.BufferedWriter;
import java.io.Closeable;
import java.io.EOFException;
import java.io.File;
import java.io.FileInputStream;
@@ -33,6 +34,7 @@ import java.util.Iterator;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.apache.commons.cli.Option;
import org.apache.commons.cli.Options;
import org.archive.util.MimetypeUtils;
@@ -45,7 +47,7 @@ import com.google.common.io.CountingInputStream;
* @author stack
* @version $Date$ $Version$
*/
public abstract class ArchiveReader implements ArchiveFileConstants, Iterable<ArchiveRecord> {
public abstract class ArchiveReader implements ArchiveFileConstants, Iterable<ArchiveRecord>, Closeable {
/**
* Is this Archive file compressed?
*/
@@ -347,9 +349,9 @@ public abstract class ArchiveReader implements ArchiveFileConstants, Iterable<Ar
return this.currentRecord;
}
protected ArchiveRecord currentRecord(final ArchiveRecord currentRecord) {
this.currentRecord = currentRecord;
return currentRecord;
protected ArchiveRecord currentRecord(final ArchiveRecord r) {
this.currentRecord = r;
return r;
}
protected InputStream getIn() {