mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-10-03 10:57:43 +00:00
* ArchiveReader.java
add "implements Closeable" since it already has the close() method
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user