de.innovationgate.utils
public class LineBufferWriter extends java.io.Writer
Buffer
Constructor and Description |
---|
LineBufferWriter() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
org.apache.commons.collections.Buffer |
getBuffer()
Returns the buffer with the written content
|
long |
getLineCount()
Returns the number of lines in the buffer
|
boolean |
isCountLinesOnly()
Returns if the buffer should only count lines but store no written content
|
void |
setCountLinesOnly(boolean countLinesOnly)
Sets if the buffer should only count lines but store no written content
Defaults to false.
|
void |
write(char[] chars,
int offset,
int length) |
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.Writer
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.Writer
java.io.IOException
public void write(char[] chars, int offset, int length) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public org.apache.commons.collections.Buffer getBuffer() throws java.io.IOException
java.io.IOException
public boolean isCountLinesOnly()
public void setCountLinesOnly(boolean countLinesOnly)
public long getLineCount()