public class InterpolationFilterReader extends FilterReader
in| Constructor and Description |
|---|
InterpolationFilterReader(Reader in,
Map variables) |
InterpolationFilterReader(Reader in,
Map variables,
String beginToken,
String endToken) |
| Modifier and Type | Method and Description |
|---|---|
int |
read()
Returns the next character in the filtered stream, replacing tokens
from the original stream.
|
int |
read(char[] cbuf,
int off,
int len)
Reads characters into a portion of an array.
|
long |
skip(long n)
Skips characters.
|
close, mark, markSupported, ready, resetpublic InterpolationFilterReader(Reader in, Map variables, String beginToken, String endToken)
public long skip(long n)
throws IOException
skip in class FilterReadern - The number of characters to skipIllegalArgumentException - If n is negative.IOException - If an I/O error occurspublic int read(char[] cbuf,
int off,
int len)
throws IOException
read in class FilterReadercbuf - Destination buffer to write characters to.
Must not be null.off - Offset at which to start storing characters.len - Maximum number of characters to read.IOException - If an I/O error occurspublic int read()
throws IOException
read in class FilterReaderIOException - if the underlying stream throws an IOException
during reading