All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.archive.util.iterator.CloseableIteratorUtil Maven / Gradle / Ivy

The newest version!
package org.archive.util.iterator;

import java.io.IOException;
import java.util.Iterator;

public class CloseableIteratorUtil {
	public static  void attemptClose(Iterator i) throws IOException {
		if(i instanceof CloseableIterator) {
			((CloseableIterator) i).close();
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy