public class TokenReplacedStream extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TokenReplacedStream.Pattern |
Constructor and Description |
---|
TokenReplacedStream() |
public void replace(InputStream in, Writer out, String... prs) throws IOException
in
- a non-null input streamout
- a character oriented writerreplacements
- an even number of Strings. Any occurrence of the even-indexed i-th String in the
input stream will be replaced by the (i+1)-th String in the output writer.IOException
public void replace(Reader in, Writer out, String... prs) throws IOException
IOException
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.