org.openjena.riot.tokens
Interface Tokenizer

All Superinterfaces:
Closeable, Iterator<Token>
All Known Implementing Classes:
PrintTokenizer, TokenizerBytes, TokenizerJSON, TokenizerText, TokenizerWrapper

public interface Tokenizer
extends Iterator<Token>, Closeable


Method Summary
 boolean eof()
          End of tokens?
 long getColumn()
           
 long getLine()
           
 boolean hasNext()
          Is there another token?
 Token next()
          Move to next token
 Token peek()
          Peek next token : null for no token.
 
Methods inherited from interface java.util.Iterator
remove
 
Methods inherited from interface org.openjena.atlas.lib.Closeable
close
 

Method Detail

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()


Licenced under the Apache License, Version 2.0