public class InterpolatorFilterReaderLineEnding extends FilterReader
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_BEGIN_TOKEN
Default begin token.
|
static String |
DEFAULT_END_TOKEN
Default end token.
|
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 |
|---|---|
String |
getEscapeString() |
org.codehaus.plexus.interpolation.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.
|
void |
setEscapeString(String escapeString) |
void |
setInterpolateWithPrefixPattern(boolean interpolateWithPrefixPattern) |
void |
setPreserveEscapeString(boolean preserveEscapeString) |
InterpolatorFilterReaderLineEnding |
setRecursionInterceptor(org.codehaus.plexus.interpolation.RecursionInterceptor recursionInterceptor) |
long |
skip(long n)
Skips characters.
|
close, mark, markSupported, ready, resetpublic 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 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()
public void setInterpolateWithPrefixPattern(boolean interpolateWithPrefixPattern)
public String getEscapeString()
public void setEscapeString(String escapeString)
public boolean isPreserveEscapeString()
public void setPreserveEscapeString(boolean preserveEscapeString)
public org.codehaus.plexus.interpolation.RecursionInterceptor getRecursionInterceptor()
public InterpolatorFilterReaderLineEnding setRecursionInterceptor(org.codehaus.plexus.interpolation.RecursionInterceptor recursionInterceptor)
Copyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.