gov.llnl.babel.backend.writers
Class LineCountingFilterWriter
FilterWriter
gov.llnl.babel.backend.writers.LineCountingFilterWriter
public class LineCountingFilterWriter
extends FilterWriter
The LineCountingFilterWriter
keeps track of the current line going through the character
stream. If the write throws an exception, the line count
remains unchanged.
d_line_count
protected int d_line_count
LineCountingFilterWriter
public LineCountingFilterWriter(java.io.Writer out)
countLines
protected int countLines(char[] x,
int off,
int len)
getLineCount
public int getLineCount()
setLineCount
public void setLineCount(int i)
write
public void write(String str,
int off,
int len)
throws IOException
write
public void write(char[] cbuf,
int off,
int len)
throws IOException
write
public void write(int c)
throws IOException