public class REFilterReader extends FilterReader
Modifier and Type | Field and Description |
---|---|
private String |
buffer |
private int |
bufpos |
private RE |
expr |
private int |
offset |
private String |
replace |
private CharIndexedReader |
stream |
in
Constructor and Description |
---|
REFilterReader(Reader stream,
RE expr,
String replace)
Creates an REFilterReader.
|
Modifier and Type | Method and Description |
---|---|
boolean |
markSupported()
Returns false.
|
int |
read()
Reads the next character from the stream per the general contract of
Reader.read().
|
int |
read(char[] b)
Reads from the stream into the provided array.
|
int |
read(char[] b,
int off,
int len)
Reads from the stream into the provided array.
|
private int bufpos
private int offset
private CharIndexedReader stream
public REFilterReader(Reader stream, RE expr, String replace)
stream
- The Reader to be filtered.expr
- The regular expression to search for.replace
- The text pattern to replace matches with.public int read()
read
in class FilterReader
public boolean markSupported()
markSupported
in class FilterReader
public int read(char[] b, int off, int len)
read
in class FilterReader
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses