abstract class ForwardingIterator extends java.lang.Object implements java.util.Iterator<PlexusIoResource>, java.io.Closeable
| Modifier and Type | Field and Description |
|---|---|
private PlexusIoResource |
next |
private java.lang.Object |
possiblyCloseable |
| Constructor and Description |
|---|
ForwardingIterator(java.lang.Object possiblyCloseable) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected abstract PlexusIoResource |
getNextResource()
Returns the next resource or null if no next resource;
|
boolean |
hasNext() |
PlexusIoResource |
next() |
void |
remove() |
private final java.lang.Object possiblyCloseable
private PlexusIoResource next
public boolean hasNext()
hasNext in interface java.util.Iterator<PlexusIoResource>public PlexusIoResource next()
next in interface java.util.Iterator<PlexusIoResource>public void remove()
remove in interface java.util.Iterator<PlexusIoResource>public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionprotected abstract PlexusIoResource getNextResource() throws java.io.IOException
java.io.IOException