Class ForwardingIterator
- java.lang.Object
-
- org.codehaus.plexus.components.io.resources.proxy.ForwardingIterator
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.util.Iterator<PlexusIoResource>
- Direct Known Subclasses:
PlexusIoProxyResourceCollection.FwdIterator
abstract class ForwardingIterator extends java.lang.Object implements java.util.Iterator<PlexusIoResource>, java.io.Closeable
-
-
Field Summary
Fields Modifier and Type Field Description private PlexusIoResourcenextprivate java.lang.ObjectpossiblyCloseable
-
Constructor Summary
Constructors Constructor Description ForwardingIterator(java.lang.Object possiblyCloseable)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()protected abstract PlexusIoResourcegetNextResource()Returns the next resource or null if no next resource;booleanhasNext()PlexusIoResourcenext()voidremove()
-
-
-
Field Detail
-
possiblyCloseable
private final java.lang.Object possiblyCloseable
-
next
private PlexusIoResource next
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<PlexusIoResource>
-
next
public PlexusIoResource next()
- Specified by:
nextin interfacejava.util.Iterator<PlexusIoResource>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<PlexusIoResource>
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
getNextResource
protected abstract PlexusIoResource getNextResource() throws java.io.IOException
Returns the next resource or null if no next resource;- Throws:
java.io.IOException
-
-