org.openjena.riot.tokens
Class TokenizerBytes

java.lang.Object
  extended by org.openjena.riot.tokens.TokenizerBytes
All Implemented Interfaces:
Iterator<Token>, Closeable, Tokenizer

public final class TokenizerBytes
extends Object
implements Tokenizer

Tokenizer for all sorts of things RDF-ish


Field Summary
static boolean Checking
           
static int CTRL_CHAR
           
 
Method Summary
 void close()
           
 boolean eof()
          End of tokens?
 TokenChecker getChecker()
           
 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.
 void remove()
           
 void setChecker(TokenChecker checker)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CTRL_CHAR

public static final int CTRL_CHAR
See Also:
Constant Field Values

Checking

public static boolean Checking
Method Detail

hasNext

public final boolean hasNext()
Description copied from interface: Tokenizer
Is there another token?

Specified by:
hasNext in interface Iterator<Token>
Specified by:
hasNext in interface Tokenizer

next

public final Token next()
Description copied from interface: Tokenizer
Move to next token

Specified by:
next in interface Iterator<Token>
Specified by:
next in interface Tokenizer

peek

public final Token peek()
Description copied from interface: Tokenizer
Peek next token : null for no token.

Specified by:
peek in interface Tokenizer

eof

public final boolean eof()
Description copied from interface: Tokenizer
End of tokens?

Specified by:
eof in interface Tokenizer

remove

public void remove()
Specified by:
remove in interface Iterator<Token>

getChecker

public TokenChecker getChecker()

setChecker

public void setChecker(TokenChecker checker)

close

public void close()
Specified by:
close in interface Closeable

getColumn

public long getColumn()
Specified by:
getColumn in interface Tokenizer

getLine

public long getLine()
Specified by:
getLine in interface Tokenizer


Licenced under the Apache License, Version 2.0