Skip navigation links
org.archive.util.iterator

Class CloseableIteratorWrapper<S>

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      protected java.util.Iterator<S> iter 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void close() 
      boolean hasNext() 
      S 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 Detail

      • iter

        protected java.util.Iterator<S> iter
    • Constructor Detail

      • CloseableIteratorWrapper

        public CloseableIteratorWrapper(java.util.Iterator<S> iter)
    • Method Detail

      • hasNext

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

        public S next()
        Specified by:
        next in interface java.util.Iterator<S>
      • remove

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

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException

Copyright © 2019 The International Internet Preservation Consortium. All Rights Reserved.