| java.lang.Object java.io.InputStream java.io.FilterInputStream gnu.regexp.REFilterInputStream
REFilterInputStream | public class REFilterInputStream extends FilterInputStream (Code) | | Replaces instances of a given RE with replacement text.
author: Wes Biggs since: gnu.regexp 1.0.5 |
Method Summary | |
public boolean | markSupported() Returns false. | public int | read() Reads the next byte from the stream per the general contract of
InputStream.read(). | public int | read(byte[] b, int off, int len) Reads from the stream into the provided array. | public int | read(byte[] b) Reads from the stream into the provided array. |
REFilterInputStream | public REFilterInputStream(InputStream f_stream, RE f_expr, String f_replace)(Code) | | Creates an REFilterInputStream. 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: f_stream - The InputStream to be filtered. Parameters: f_expr - The regular expression to search for. Parameters: f_replace - The text pattern to replace matches with. |
markSupported | public boolean markSupported()(Code) | | Returns false. REFilterInputStream does not support mark() and
reset() methods.
|
read | public int read()(Code) | | Reads the next byte from the stream per the general contract of
InputStream.read(). Returns -1 on error or end of stream.
|
read | public int read(byte[] b, int off, int len)(Code) | | Reads from the stream into the provided array.
|
read | public int read(byte[] b)(Code) | | Reads from the stream into the provided array.
|
|
|