Class LineSentenceIterator

    • Constructor Detail

      • LineSentenceIterator

        public LineSentenceIterator​(File f)
    • Method Detail

      • nextSentence

        public String nextSentence()
        Description copied from interface: SentenceIterator
        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

        public boolean hasNext()
        Description copied from interface: SentenceIterator
        Same idea as Iterator
        Returns:
        whether there's anymore sentences left
      • reset

        public void reset()
        Description copied from interface: SentenceIterator
        Resets the iterator to the beginning