public final class CharReader extends CharStream
CharStream
, defining an
identify function correctOffset(int)
method that
simply returns the provided offset.Modifier and Type | Field and Description |
---|---|
protected java.io.Reader |
input |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
correctOffset(int currentOff)
Called by CharFilter(s) and Tokenizer to correct token offset.
|
static CharStream |
get(java.io.Reader input) |
void |
mark(int readAheadLimit) |
boolean |
markSupported() |
int |
read(char[] cbuf,
int off,
int len) |
void |
reset() |
public static CharStream get(java.io.Reader input)
public int correctOffset(int currentOff)
CharStream
correctOffset
in class CharStream
currentOff
- offset as seen in the outputpublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Reader
java.io.IOException
public int read(char[] cbuf, int off, int len) throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.Reader
public void mark(int readAheadLimit) throws java.io.IOException
mark
in class java.io.Reader
java.io.IOException
public void reset() throws java.io.IOException
reset
in class java.io.Reader
java.io.IOException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.