Interface SentenceIterator

    • Method Detail

      • nextSentence

        String nextSentence()
        Gets the next sentence or null if there's nothing left (Do yourself a favor and check hasNext() )
        Returns:
        the next sentence in the iterator
      • hasNext

        boolean hasNext()
        Same idea as Iterator
        Returns:
        whether there's anymore sentences left
      • reset

        void reset()
        Resets the iterator to the beginning
      • finish

        void finish()
        Allows for any finishing (closing of input streams or the like)