Class SeekableMatcherDelegate

java.lang.Object
org.aksw.commons.io.seekable.impl.SeekableMatcherDelegate
All Implemented Interfaces:
SeekableMatcher

public class SeekableMatcherDelegate extends Object implements SeekableMatcher
  • Field Details

  • Constructor Details

    • SeekableMatcherDelegate

      public SeekableMatcherDelegate(SeekableMatcher delegate)
  • Method Details

    • isForward

      public boolean isForward()
      Description copied from interface: SeekableMatcher
      Whether the matcher matches in forward direction and thus nextPos() moves towards the end of the match. If false, prevPos() moves towards the end of the match
      Specified by:
      isForward in interface SeekableMatcher
      Returns:
    • resetState

      public void resetState()
      Description copied from interface: SeekableMatcher
      Reset the state of the matcher such that it can be used with a fresh seekable
      Specified by:
      resetState in interface SeekableMatcher
    • find

      public boolean find(Seekable seekable) throws IOException
      Description copied from interface: SeekableMatcher
      Move the position to the next match. Position is unspecified if no match was found. TODO Add a horizon argument to limit scanning in case of infinite streams
      Specified by:
      find in interface SeekableMatcher
      Returns:
      true if a match was found, false otherwise
      Throws:
      IOException