Interface Tokenizer

All Superinterfaces:
org.apache.jena.atlas.lib.Closeable, Iterator<Token>
All Known Implementing Classes:
PrintTokenizer, TokenizerJSON, TokenizerText, TokenizerWrapper

public interface Tokenizer extends Iterator<Token>, org.apache.jena.atlas.lib.Closeable
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    eof()
    End of tokens?
    long
     
    long
     
    boolean
    Is there another token?
    Move to next token
    Peek next token : null for no token.

    Methods inherited from interface org.apache.jena.atlas.lib.Closeable

    close

    Methods inherited from interface java.util.Iterator

    forEachRemaining, remove
  • Method Details

    • hasNext

      boolean hasNext()
      Is there another token?
      Specified by:
      hasNext in interface Iterator<Token>
    • next

      Token next()
      Move to next token
      Specified by:
      next in interface Iterator<Token>
    • peek

      Token peek()
      Peek next token : null for no token.
    • eof

      boolean eof()
      End of tokens?
    • getLine

      long getLine()
    • getColumn

      long getColumn()