org.objectweb.jac.util
Class LineNumberWriter
java.lang.Object
java.io.Writer
java.io.FilterWriter
org.objectweb.jac.util.LineNumberWriter
- public class LineNumberWriter
- extends FilterWriter
A writer which counts the numbers of lines that it writes.
- See Also:
getLines()
Method Summary |
int |
getLines()
Returns the number of lines written |
void |
write(char[] b,
int off,
int len)
|
void |
write(int b)
|
void |
write(String str,
int off,
int len)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LineNumberWriter
public LineNumberWriter(Writer out)
write
public void write(int b)
throws IOException
- Throws:
IOException
write
public void write(char[] b,
int off,
int len)
throws IOException
- Throws:
IOException
write
public void write(String str,
int off,
int len)
throws IOException
- Throws:
IOException
getLines
public int getLines()
- Returns the number of lines written