Package com.mchange.v2.io
Interface FileIterator
-
- All Superinterfaces:
ClosableResource
,UIterator
public interface FileIterator extends UIterator
-
-
Field Summary
Fields Modifier and Type Field Description static FileIterator
EMPTY_FILE_ITERATOR
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
forces the release of any resources that might be associated with this object.boolean
hasNext()
java.lang.Object
next()
java.io.File
nextFile()
void
remove()
-
-
-
Field Detail
-
EMPTY_FILE_ITERATOR
static final FileIterator EMPTY_FILE_ITERATOR
-
-
Method Detail
-
nextFile
java.io.File nextFile() throws java.io.IOException
- Throws:
java.io.IOException
-
hasNext
boolean hasNext() throws java.io.IOException
-
next
java.lang.Object next() throws java.io.IOException
-
remove
void remove() throws java.io.IOException
-
close
void close() throws java.io.IOException
Description copied from interface:ClosableResource
forces the release of any resources that might be associated with this object.- Specified by:
close
in interfaceClosableResource
- Specified by:
close
in interfaceUIterator
- Throws:
java.io.IOException
-
-