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 PlexusIoResource
next
private java.lang.Object
possiblyCloseable
-
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 void
close()
protected abstract PlexusIoResource
getNextResource()
Returns the next resource or null if no next resource;boolean
hasNext()
PlexusIoResource
next()
void
remove()
-
-
-
Field Detail
-
possiblyCloseable
private final java.lang.Object possiblyCloseable
-
next
private PlexusIoResource next
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<PlexusIoResource>
-
next
public PlexusIoResource next()
- Specified by:
next
in interfacejava.util.Iterator<PlexusIoResource>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<PlexusIoResource>
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in 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
-
-