public abstract class AdvancedReader.CommentHandler extends Object
Constructor and Description |
---|
CommentHandler() |
Modifier and Type | Method and Description |
---|---|
protected int |
getCurrentPosition()
Get current buffer internal position, for performance reasons, so that number of read characters can be easily computed.
|
protected AdvancedReader |
getReader() |
abstract int |
handleComments(boolean isNew,
int last)
Comment handling method
|
protected int |
internalRead()
Reads next character without comments hook.
|
boolean |
isDeactivated() |
boolean |
isForceReanalyze() |
void |
setDeactivated(boolean deactivated) |
void |
setForceReanalyze(boolean forceReanalyze) |
public abstract int handleComments(boolean isNew, int last) throws IOException
isNew
- Is character coming from underlying reader (true) or has been unread or re-read (false) ?last
- Read characterIOException
protected final int internalRead() throws IOException
IOException
protected final int getCurrentPosition()
protected final AdvancedReader getReader()
public boolean isForceReanalyze()
public void setForceReanalyze(boolean forceReanalyze)
public boolean isDeactivated()
public void setDeactivated(boolean deactivated)