Package org.apache.jena.riot.tokens
Class TokenizerWrapper
- java.lang.Object
-
- org.apache.jena.riot.tokens.TokenizerWrapper
-
- All Implemented Interfaces:
java.util.Iterator<Token>,org.apache.jena.atlas.lib.Closeable,Tokenizer
- Direct Known Subclasses:
PrintTokenizer
public class TokenizerWrapper extends java.lang.Object implements Tokenizer
-
-
Constructor Summary
Constructors Constructor Description TokenizerWrapper(Tokenizer other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleaneof()End of tokens?longgetColumn()longgetLine()booleanhasNext()Is there another token?Tokennext()Move to next tokenTokenpeek()Peek next token : null for no token.
-
-
-
Constructor Detail
-
TokenizerWrapper
public TokenizerWrapper(Tokenizer other)
-
-
Method Detail
-
hasNext
public boolean hasNext()
Description copied from interface:TokenizerIs there another token?
-
eof
public boolean eof()
Description copied from interface:TokenizerEnd of tokens?
-
peek
public Token peek()
Description copied from interface:TokenizerPeek next token : null for no token.
-
close
public void close()
- Specified by:
closein interfaceorg.apache.jena.atlas.lib.Closeable
-
-