Class ForwardingIterator
java.lang.Object
org.codehaus.plexus.components.io.resources.proxy.ForwardingIterator
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterator<PlexusIoResource>
- Direct Known Subclasses:
PlexusIoProxyResourceCollection.FwdIterator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected abstract PlexusIoResource
Returns the next resource or null if no next resource;boolean
hasNext()
next()
void
remove()
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
forEachRemaining
-
Field Details
-
possiblyCloseable
-
next
-
-
Constructor Details
-
ForwardingIterator
ForwardingIterator(Object possiblyCloseable)
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<PlexusIoResource>
-
next
- Specified by:
next
in interfaceIterator<PlexusIoResource>
-
remove
public void remove()- Specified by:
remove
in interfaceIterator<PlexusIoResource>
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getNextResource
Returns the next resource or null if no next resource;- Throws:
IOException
-