public class InterpolatorFilterReader extends FilterReader
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_BEGIN_TOKEN
Default begin token.
|
static String |
DEFAULT_END_TOKEN
Default end token.
|
in| Constructor and Description |
|---|
InterpolatorFilterReader(Reader in,
Interpolator interpolator)
this constructor use default begin token ${ and default end token }
|
InterpolatorFilterReader(Reader in,
Interpolator interpolator,
RecursionInterceptor ri)
this constructor use default begin token ${ and default end token }
|
InterpolatorFilterReader(Reader in,
Interpolator interpolator,
String beginToken,
String endToken) |
InterpolatorFilterReader(Reader in,
Interpolator interpolator,
String beginToken,
String endToken,
RecursionInterceptor ri) |
| Modifier and Type | Method and Description |
|---|---|
String |
getEscapeString() |
RecursionInterceptor |
getRecursionInterceptor() |
boolean |
isInterpolateWithPrefixPattern() |
boolean |
isPreserveEscapeString() |
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.
|
void |
setEscapeString(String escapeString) |
void |
setInterpolateWithPrefixPattern(boolean interpolateWithPrefixPattern) |
void |
setPreserveEscapeString(boolean preserveEscapeString) |
InterpolatorFilterReader |
setRecursionInterceptor(RecursionInterceptor recursionInterceptor) |
long |
skip(long n)
Skips characters.
|
close, mark, markSupported, ready, resetpublic static final String DEFAULT_BEGIN_TOKEN
public static final String DEFAULT_END_TOKEN
public InterpolatorFilterReader(Reader in, Interpolator interpolator)
in - reader to useinterpolator - interpolator instance to usepublic InterpolatorFilterReader(Reader in, Interpolator interpolator, String beginToken, String endToken)
in - reader to useinterpolator - interpolator instance to usebeginToken - start token to useendToken - end token to usepublic InterpolatorFilterReader(Reader in, Interpolator interpolator, RecursionInterceptor ri)
in - reader to useinterpolator - interpolator instance to useri - The RecursionInterceptor to use to prevent recursive expressions.public InterpolatorFilterReader(Reader in, Interpolator interpolator, String beginToken, String endToken, RecursionInterceptor ri)
in - reader to useinterpolator - interpolator instance to usebeginToken - start token to useendToken - end token to useri - The RecursionInterceptor to use to prevent recursive expressions.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 readingpublic boolean isInterpolateWithPrefixPattern()
public void setInterpolateWithPrefixPattern(boolean interpolateWithPrefixPattern)
public String getEscapeString()
public void setEscapeString(String escapeString)
public boolean isPreserveEscapeString()
public void setPreserveEscapeString(boolean preserveEscapeString)
public RecursionInterceptor getRecursionInterceptor()
public InterpolatorFilterReader setRecursionInterceptor(RecursionInterceptor recursionInterceptor)
Copyright © 2001-2013 Codehaus. All Rights Reserved.