Class ForwardingIterator

    • Field Detail

      • possiblyCloseable

        private final java.lang.Object possiblyCloseable
    • Constructor Detail

      • ForwardingIterator

        ForwardingIterator​(java.lang.Object possiblyCloseable)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<PlexusIoResource>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<PlexusIoResource>
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.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