oursland.parse
Class BaseTokenizer
java.lang.Object
oursland.parse.BaseTokenizer
- Direct Known Subclasses:
- LispTokenizer
public abstract class BaseTokenizer
- extends java.lang.Object
Provides look-ahead capability to aid in tokenizer implementations.
- Author:
- oursland
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
in
private java.io.InputStream in
buf
private IntegerRingBuffer buf
BaseTokenizer
public BaseTokenizer(java.io.InputStream in)
hasNextToken
public abstract boolean hasNextToken()
throws java.io.IOException
- Throws:
java.io.IOException
nextToken
public abstract java.lang.String nextToken()
throws java.io.IOException
- Throws:
java.io.IOException
consume
protected void consume(char c)
throws java.io.IOException
- Throws:
java.io.IOException
peek
protected char peek(int n)
throws java.io.IOException
- Throws:
java.io.IOException
peekNoEOF
protected int peekNoEOF(int n)
throws java.io.IOException
- Throws:
java.io.IOException