public class InterpolatorFilterReaderLineEnding 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 |
|---|
InterpolatorFilterReaderLineEnding(Reader in,
Interpolator interpolator,
String beginToken,
String endToken,
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.
|
void |
setInterpolateWithPrefixPattern(boolean interpolateWithPrefixPattern) |
InterpolatorFilterReaderLineEnding |
setRecursionInterceptor(RecursionInterceptor theRecursionInterceptor) |
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 InterpolatorFilterReaderLineEnding(Reader in, Interpolator interpolator, String beginToken, String endToken, boolean supportMultiLineFiltering)
in - reader to useinterpolator - interpolator instance to usebeginToken - start token to useendToken - end token to usesupportMultiLineFiltering - If multi line filtering is allowedpublic long skip(long n)
throws IOException
skip in class FilterReadern - The number of characters to skipIOException - 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)
interpolateWithPrefixPattern - interpolate with prefix pattern.public RecursionInterceptor getRecursionInterceptor()
recursionInterceptorpublic InterpolatorFilterReaderLineEnding setRecursionInterceptor(RecursionInterceptor theRecursionInterceptor)
theRecursionInterceptor - RecursionInterceptorInterpolatorFilterReaderLineEndingCopyright © 2002–2020 The Apache Software Foundation. All rights reserved.