public class MultiDelimiterInterpolatorFilterReader 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 |
|---|
MultiDelimiterInterpolatorFilterReader(Reader in,
Interpolator interpolator)
this constructor use default begin token ${ and default end token }
|
MultiDelimiterInterpolatorFilterReader(Reader in,
Interpolator interpolator,
RecursionInterceptor ri) |
| Modifier and Type | Method and Description |
|---|---|
MultiDelimiterInterpolatorFilterReader |
addDelimiterSpec(String delimiterSpec) |
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.
|
boolean |
removeDelimiterSpec(String delimiterSpec) |
MultiDelimiterInterpolatorFilterReader |
setDelimiterSpecs(LinkedHashSet<String> specs) |
void |
setEscapeString(String escapeString) |
void |
setInterpolateWithPrefixPattern(boolean interpolateWithPrefixPattern) |
void |
setPreserveEscapeString(boolean preserveEscapeString) |
MultiDelimiterInterpolatorFilterReader |
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 MultiDelimiterInterpolatorFilterReader(Reader in, Interpolator interpolator)
in - reader to useinterpolator - interpolator instance to usepublic MultiDelimiterInterpolatorFilterReader(Reader in, Interpolator interpolator, RecursionInterceptor ri)
in - reader to useinterpolator - interpolator instance to useri - The RecursionInterceptor to use to prevent recursive expressions.public MultiDelimiterInterpolatorFilterReader addDelimiterSpec(String delimiterSpec)
public boolean removeDelimiterSpec(String delimiterSpec)
public MultiDelimiterInterpolatorFilterReader setDelimiterSpecs(LinkedHashSet<String> specs)
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 MultiDelimiterInterpolatorFilterReader setRecursionInterceptor(RecursionInterceptor recursionInterceptor)
Copyright © 2001-2013 Codehaus. All Rights Reserved.