public class MultiDelimiterInterpolatorFilterReaderLineEnding extends AbstractFilterReaderLineEnding
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
beginToken |
static java.lang.String |
DEFAULT_BEGIN_TOKEN
Default begin token.
|
static java.lang.String |
DEFAULT_END_TOKEN
Default end token.
|
private java.lang.String |
endToken |
private boolean |
eof |
private boolean |
interpolateWithPrefixPattern
true by default to preserve backward comp
|
private org.codehaus.plexus.interpolation.Interpolator |
interpolator
Interpolator used to interpolate
|
private static int |
MAXIMUM_BUFFER_SIZE |
private org.codehaus.plexus.interpolation.RecursionInterceptor |
recursionInterceptor |
private java.lang.String |
replaceData
replacement text from a token
|
private int |
replaceIndex
Index into replacement data
|
private boolean |
supportMultiLineFiltering |
delimiters, markLength, useEscape| Constructor and Description |
|---|
MultiDelimiterInterpolatorFilterReaderLineEnding(java.io.Reader in,
org.codehaus.plexus.interpolation.Interpolator interpolator,
boolean supportMultiLineFiltering)
This constructor uses default begin token ${ and default end token }.
|
MultiDelimiterInterpolatorFilterReaderLineEnding(java.io.Reader in,
org.codehaus.plexus.interpolation.Interpolator interpolator,
org.codehaus.plexus.interpolation.RecursionInterceptor ri,
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.
|
boolean |
removeDelimiterSpec(java.lang.String delimiterSpec) |
AbstractFilterReaderLineEnding |
setDelimiterSpecs(java.util.Set<java.lang.String> specs) |
void |
setInterpolateWithPrefixPattern(boolean interpolateWithPrefixPattern) |
AbstractFilterReaderLineEnding |
setRecursionInterceptor(org.codehaus.plexus.interpolation.RecursionInterceptor givenRecursionInterceptor) |
long |
skip(long n)
Skips characters.
|
calculateMarkLength, getEscapeString, isPreserveEscapeString, setEscapeString, setPreserveEscapeStringprivate org.codehaus.plexus.interpolation.Interpolator interpolator
private org.codehaus.plexus.interpolation.RecursionInterceptor recursionInterceptor
private java.lang.String replaceData
private int replaceIndex
public static final java.lang.String DEFAULT_BEGIN_TOKEN
public static final java.lang.String DEFAULT_END_TOKEN
private boolean interpolateWithPrefixPattern
private java.lang.String beginToken
private java.lang.String endToken
private boolean supportMultiLineFiltering
private static final int MAXIMUM_BUFFER_SIZE
private boolean eof
public MultiDelimiterInterpolatorFilterReaderLineEnding(java.io.Reader in,
org.codehaus.plexus.interpolation.Interpolator interpolator,
boolean supportMultiLineFiltering)
in - reader to useinterpolator - interpolator instance to usesupportMultiLineFiltering - If multi line filtering is allowedpublic MultiDelimiterInterpolatorFilterReaderLineEnding(java.io.Reader in,
org.codehaus.plexus.interpolation.Interpolator interpolator,
org.codehaus.plexus.interpolation.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(java.lang.String delimiterSpec)
delimiterSpec - delimiter spec.public AbstractFilterReaderLineEnding setDelimiterSpecs(java.util.Set<java.lang.String> specs)
specs - set of specs.MultiDelimiterInterpolatorFilterReaderLineEndingpublic long skip(long n)
throws java.io.IOException,
java.lang.IllegalArgumentException
skip in class java.io.FilterReadern - The number of characters to skipjava.lang.IllegalArgumentException - If n is negative.java.io.IOException - If an I/O error occurspublic int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
read in class java.io.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.java.io.IOException - If an I/O error occurspublic int read()
throws java.io.IOException
read in class java.io.FilterReaderjava.io.IOException - 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 org.codehaus.plexus.interpolation.RecursionInterceptor getRecursionInterceptor()
RecursionInterceptorpublic AbstractFilterReaderLineEnding setRecursionInterceptor(org.codehaus.plexus.interpolation.RecursionInterceptor givenRecursionInterceptor)
givenRecursionInterceptor - RecursionInterceptor