Neo4j Community

org.neo4j.helpers.collection
Class LinesOfFileIterator

java.lang.Object
  extended by org.neo4j.helpers.collection.PrefetchingIterator<String>
      extended by org.neo4j.helpers.collection.LinesOfFileIterator
All Implemented Interfaces:
Iterator<String>, ClosableIterator<String>

public class LinesOfFileIterator
extends PrefetchingIterator<String>
implements ClosableIterator<String>


Constructor Summary
LinesOfFileIterator(File file)
           
 
Method Summary
 void close()
           
protected  String fetchNextOrNull()
           
 
Methods inherited from class org.neo4j.helpers.collection.PrefetchingIterator
getPrefetchedNextOrNull, hasNext, next, remove, setPrefetchedNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Constructor Detail

LinesOfFileIterator

public LinesOfFileIterator(File file)
                    throws IOException
Throws:
IOException
Method Detail

fetchNextOrNull

protected String fetchNextOrNull()
Specified by:
fetchNextOrNull in class PrefetchingIterator<String>

close

public void close()
Specified by:
close in interface ClosableIterator<String>

Neo4j Community

Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.