| java.lang.Object java.io.Reader java.io.FilterReader gnu.regexp.REFilterReader
REFilterReader | public class REFilterReader extends FilterReader (Code) | | Replaces instances of a given RE with replacement text.
author: Lee Sau Dan since: gnu.regexp 1.1.0 |
Method Summary | |
public boolean | markSupported() Returns false. | public int | read() Reads the next character from the stream per the general contract of
Reader.read(). | public int | read(char[] b, int off, int len) Reads from the stream into the provided array. | public int | read(char[] b) Reads from the stream into the provided array. |
REFilterReader | public REFilterReader(Reader stream, RE expr, String replace)(Code) | | Creates an REFilterReader. When reading from this stream,
occurrences of patterns matching the supplied regular expression
will be replaced with the supplied replacement text (the
metacharacters $0 through $9 may be used to refer to the full
match or subexpression matches.
Parameters: stream - The Reader to be filtered. Parameters: expr - The regular expression to search for. Parameters: replace - The text pattern to replace matches with. |
markSupported | public boolean markSupported()(Code) | | Returns false. REFilterReader does not support mark() and
reset() methods.
|
read | public int read()(Code) | | Reads the next character from the stream per the general contract of
Reader.read(). Returns -1 on error or end of stream.
|
read | public int read(char[] b, int off, int len)(Code) | | Reads from the stream into the provided array.
|
read | public int read(char[] b)(Code) | | Reads from the stream into the provided array.
|
|
|