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

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

There is a newer version: 1.1.9
Show 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