Class IteratorRecovering<T>

java.lang.Object
org.apache.jena.atlas.iterator.IteratorWrapper<T>
org.aksw.jenax.rdf.io.lenient.IteratorRecovering<T>
All Implemented Interfaces:
Iterator<T>, org.apache.jena.atlas.iterator.IteratorCloseable<T>, org.apache.jena.atlas.lib.Closeable

public class IteratorRecovering<T> extends org.apache.jena.atlas.iterator.IteratorWrapper<T>
Recovering peek iterator.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
     
    protected org.apache.jena.atlas.io.PeekReader
     
    protected T
     

    Fields inherited from class org.apache.jena.atlas.iterator.IteratorWrapper

    iterator
  • Constructor Summary

    Constructors
    Constructor
    Description
    IteratorRecovering(Iterator<T> iterator, org.apache.jena.atlas.io.PeekReader peekReader)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    forEachRemaining(Consumer<? super T> action)
     
    boolean
    This method peeks the next valid token.
     

    Methods inherited from class org.apache.jena.atlas.iterator.IteratorWrapper

    close, get, remove

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • peekReader

      protected org.apache.jena.atlas.io.PeekReader peekReader
    • isSlotSet

      protected boolean isSlotSet
    • slot

      protected T slot
  • Constructor Details

    • IteratorRecovering

      public IteratorRecovering(Iterator<T> iterator, org.apache.jena.atlas.io.PeekReader peekReader)
  • Method Details

    • hasNext

      public boolean hasNext()
      This method peeks the next valid token.
      Specified by:
      hasNext in interface Iterator<T>
      Overrides:
      hasNext in class org.apache.jena.atlas.iterator.IteratorWrapper<T>
    • next

      public T next()
      Specified by:
      next in interface Iterator<T>
      Overrides:
      next in class org.apache.jena.atlas.iterator.IteratorWrapper<T>
    • forEachRemaining

      public void forEachRemaining(Consumer<? super T> action)
      Specified by:
      forEachRemaining in interface Iterator<T>
      Overrides:
      forEachRemaining in class org.apache.jena.atlas.iterator.IteratorWrapper<T>