|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Reader java.io.FilterReader org.apache.maven.shared.filtering.MultiDelimiterInterpolatorFilterReaderLineEnding
public class MultiDelimiterInterpolatorFilterReaderLineEnding
A FilterReader implementation, that works with Interpolator interface instead of it's own interpolation implementation. This implementation is heavily based on org.codehaus.plexus.util.InterpolationFilterReader.
Field Summary | |
---|---|
static String |
DEFAULT_BEGIN_TOKEN
Default begin token. |
static String |
DEFAULT_END_TOKEN
Default end token. |
Fields inherited from class java.io.FilterReader |
---|
in |
Fields inherited from class java.io.Reader |
---|
lock |
Constructor Summary | |
---|---|
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)
|
Method Summary | |
---|---|
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)
|
MultiDelimiterInterpolatorFilterReaderLineEnding |
setDelimiterSpecs(HashSet specs)
|
void |
setEscapeString(String escapeString)
|
void |
setInterpolateWithPrefixPattern(boolean interpolateWithPrefixPattern)
|
void |
setPreserveEscapeString(boolean preserveEscapeString)
|
MultiDelimiterInterpolatorFilterReaderLineEnding |
setRecursionInterceptor(RecursionInterceptor recursionInterceptor)
|
long |
skip(long n)
Skips characters. |
Methods inherited from class java.io.FilterReader |
---|
close, mark, markSupported, ready, reset |
Methods inherited from class java.io.Reader |
---|
read, read |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_BEGIN_TOKEN
public static final String DEFAULT_END_TOKEN
Constructor Detail |
---|
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 allowedMethod Detail |
---|
public boolean removeDelimiterSpec(String delimiterSpec)
public MultiDelimiterInterpolatorFilterReaderLineEnding setDelimiterSpecs(HashSet specs)
public long skip(long n) throws IOException
skip
in class FilterReader
n
- The number of characters to skip
IllegalArgumentException
- If n
is negative.
IOException
- 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)
public String getEscapeString()
public void setEscapeString(String escapeString)
public boolean isPreserveEscapeString()
public void setPreserveEscapeString(boolean preserveEscapeString)
public RecursionInterceptor getRecursionInterceptor()
public MultiDelimiterInterpolatorFilterReaderLineEnding setRecursionInterceptor(RecursionInterceptor recursionInterceptor)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |