org.codehaus.plexus.util
Class LineOrientedInterpolatingReader
FilterReader
org.codehaus.plexus.util.LineOrientedInterpolatingReader
public class LineOrientedInterpolatingReader
extends FilterReader
- jdcasey Created on Feb 3, 2005
CARRIAGE_RETURN_CHAR
private static final char CARRIAGE_RETURN_CHAR
DEFAULT_END_DELIM
public static final String DEFAULT_END_DELIM
DEFAULT_ESCAPE_SEQ
public static final String DEFAULT_ESCAPE_SEQ
DEFAULT_START_DELIM
public static final String DEFAULT_START_DELIM
NEWLINE_CHAR
private static final char NEWLINE_CHAR
context
private final Map context
endDelim
private final String endDelim
escapeSeq
private final String escapeSeq
lineIdx
private int lineIdx
minExpressionSize
private final int minExpressionSize
pushbackReader
private final PushbackReader pushbackReader
startDelim
private final String startDelim
LineOrientedInterpolatingReader
public LineOrientedInterpolatingReader(Reader reader,
Map context)
LineOrientedInterpolatingReader
public LineOrientedInterpolatingReader(Reader reader,
Map context,
String startDelim,
String endDelim)
LineOrientedInterpolatingReader
public LineOrientedInterpolatingReader(Reader reader,
Map context,
String startDelim,
String endDelim,
String escapeSeq)
evaluateExpressions
private Map evaluateExpressions(Set expressions)
findAndReplaceUnlessEscaped
private String findAndReplaceUnlessEscaped(String rawLine,
String search,
String replace)
findDelimiter
private int findDelimiter(String rawLine,
String delimiter,
int lastPos)
parseForExpressions
private Set parseForExpressions(String rawLine)
read
public int read()
throws IOException
read
public int read(char[] cbuf,
int off,
int len)
throws IOException
readAndInterpolateLine
private void readAndInterpolateLine()
throws IOException
readLine
private String readLine()
throws IOException
replaceWithInterpolatedValues
private String replaceWithInterpolatedValues(String rawLine,
Map evaluatedExpressions)
skip
public long skip(long n)
throws IOException