public class MultiDelimiterInterpolatorFilterReaderLineEnding extends AbstractFilterReaderLineEnding
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_BEGIN_TOKEN
Default begin token.
|
static String |
DEFAULT_END_TOKEN
Default end token.
|
delimiters, markLength, useEscapein| Constructor and Description |
|---|
MultiDelimiterInterpolatorFilterReaderLineEnding(Reader in,
Interpolator interpolator,
boolean supportMultiLineFiltering)
This constructor uses default begin token ${ and default end token }.
|
MultiDelimiterInterpolatorFilterReaderLineEnding(Reader in,
Interpolator interpolator,
RecursionInterceptor ri,
boolean supportMultiLineFiltering) |
| Modifier and Type | Method and Description |
|---|---|
RecursionInterceptor |
getRecursionInterceptor() |
boolean |
isInterpolateWithPrefixPattern() |
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) |
AbstractFilterReaderLineEnding |
setDelimiterSpecs(Set<String> specs) |
void |
setInterpolateWithPrefixPattern(boolean interpolateWithPrefixPattern) |
AbstractFilterReaderLineEnding |
setRecursionInterceptor(RecursionInterceptor givenRecursionInterceptor) |
long |
skip(long n)
Skips characters.
|
calculateMarkLength, getEscapeString, isPreserveEscapeString, setEscapeString, setPreserveEscapeStringclose, mark, markSupported, ready, resetpublic static final String DEFAULT_BEGIN_TOKEN
public static final String DEFAULT_END_TOKEN
public MultiDelimiterInterpolatorFilterReaderLineEnding(Reader in, Interpolator interpolator, boolean supportMultiLineFiltering)
in - reader to useinterpolator - interpolator instance to usesupportMultiLineFiltering - If multi line filtering is allowedpublic MultiDelimiterInterpolatorFilterReaderLineEnding(Reader in, Interpolator interpolator, RecursionInterceptor ri, boolean supportMultiLineFiltering)
in - reader to useinterpolator - interpolator instance to useri - The RecursionInterceptor to use to prevent recursive expressions.supportMultiLineFiltering - If multi line filtering is allowedpublic boolean removeDelimiterSpec(String delimiterSpec)
delimiterSpec - delimiter spec.public AbstractFilterReaderLineEnding setDelimiterSpecs(Set<String> specs)
specs - set of specs.MultiDelimiterInterpolatorFilterReaderLineEndingpublic long skip(long n)
throws IOException,
IllegalArgumentException
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()
true (active) false otherwise.public void setInterpolateWithPrefixPattern(boolean interpolateWithPrefixPattern)
interpolateWithPrefixPattern - set the interpolate with prefix pattern.public RecursionInterceptor getRecursionInterceptor()
RecursionInterceptorpublic AbstractFilterReaderLineEnding setRecursionInterceptor(RecursionInterceptor givenRecursionInterceptor)
givenRecursionInterceptor - RecursionInterceptorCopyright © 2002–2020 The Apache Software Foundation. All rights reserved.