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, useEscape
in
Constructor and Description |
---|
InterpolatorFilterReaderLineEnding(Reader in,
org.codehaus.plexus.interpolation.Interpolator interpolator,
String beginToken,
String endToken,
boolean supportMultiLineFiltering) |
Modifier and Type | Method and Description |
---|---|
org.codehaus.plexus.interpolation.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(org.codehaus.plexus.interpolation.RecursionInterceptor theRecursionInterceptor) |
long |
skip(long n)
Skips characters.
|
calculateMarkLength, getEscapeString, isPreserveEscapeString, setEscapeString, setPreserveEscapeString
close, mark, markSupported, ready, reset
public static final String DEFAULT_BEGIN_TOKEN
public static final String DEFAULT_END_TOKEN
public InterpolatorFilterReaderLineEnding(Reader in, org.codehaus.plexus.interpolation.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 FilterReader
n
- 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 FilterReader
cbuf
- 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 FilterReader
IOException
- if the underlying stream throws an IOException during readingpublic boolean isInterpolateWithPrefixPattern()
public void setInterpolateWithPrefixPattern(boolean interpolateWithPrefixPattern)
interpolateWithPrefixPattern
- interpolate with prefix pattern.public org.codehaus.plexus.interpolation.RecursionInterceptor getRecursionInterceptor()
recursionInterceptor
public InterpolatorFilterReaderLineEnding setRecursionInterceptor(org.codehaus.plexus.interpolation.RecursionInterceptor theRecursionInterceptor)
theRecursionInterceptor
- RecursionInterceptor
InterpolatorFilterReaderLineEnding
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.