01: /*
02: * LICENSE INFORMATION
03: * Copyright 2005-2007 by FZI (http://www.fzi.de).
04: * Licensed under a BSD license (http://www.opensource.org/licenses/bsd-license.php)
05: * <OWNER> = Max Völkel
06: * <ORGANIZATION> = FZI Forschungszentrum Informatik Karlsruhe, Karlsruhe, Germany
07: * <YEAR> = 2007
08: *
09: * Project information at http://semweb4j.org/rdf2go
10: */
11: package org.ontoware.rdf2go.model.impl;
12:
13: import java.util.Iterator;
14:
15: import org.ontoware.aifbcommons.collection.ClosableIterator;
16:
17: public class PseudoClosableIterator<T> implements ClosableIterator<T> {
18:
19: private Iterator<T> iterator;
20:
21: public PseudoClosableIterator(Iterator<T> it) {
22: this .iterator = it;
23: }
24:
25: public boolean hasNext() {
26: return this .iterator.hasNext();
27: }
28:
29: public T next() {
30: return this .iterator.next();
31: }
32:
33: public void remove() {
34: this .iterator.remove();
35: }
36:
37: public void close() {
38: // do nothing
39: }
40:
41: }
|