public class LineCountingStringWriter extends StringWriter
StringWriter
to provide real-time line and column counts for data that has so far
been written to the writer.Constructor and Description |
---|
LineCountingStringWriter() |
LineCountingStringWriter(int initialSize) |
Modifier and Type | Method and Description |
---|---|
StringWriter |
append(char c) |
StringWriter |
append(CharSequence csq) |
StringWriter |
append(CharSequence csq,
int start,
int end) |
int |
getColumn() |
int |
getLine() |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
void |
write(String str) |
void |
write(String str,
int off,
int len) |
close, flush, getBuffer, toString
public LineCountingStringWriter()
public LineCountingStringWriter(int initialSize)
public void write(int c)
write
in class StringWriter
public void write(char[] cbuf, int off, int len)
write
in class StringWriter
public void write(String str)
write
in class StringWriter
public void write(String str, int off, int len)
write
in class StringWriter
public StringWriter append(CharSequence csq)
append
in interface Appendable
append
in class StringWriter
public StringWriter append(CharSequence csq, int start, int end)
append
in interface Appendable
append
in class StringWriter
public StringWriter append(char c)
append
in interface Appendable
append
in class StringWriter
public int getLine()
public int getColumn()
Copyright © 2011-2015 IBM. All Rights Reserved.