|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectolg.csv.base.IgnoreNullWriter
public class IgnoreNullWriter
A "Proxy" writer which Provides a mecanism to skip empty row.
Constructor Summary | |
---|---|
IgnoreNullWriter(IWriter writer)
|
Method Summary | |
---|---|
void |
addLine(String[] values)
Write a row only if not empty. |
void |
addRow(Row row)
writes a row only if not empty. |
void |
close()
Close the original writer. |
boolean |
isWithHeaders()
Indicates if the file has a headers line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IgnoreNullWriter(IWriter writer)
writer
- a concret readerMethod Detail |
---|
public void close()
close
in interface Closeable
public void addRow(Row row)
addRow
in interface IWriter
row
- the row.public void addLine(String[] values)
addLine
in interface IWriter
values
- the row.public boolean isWithHeaders()
IWriter
isWithHeaders
in interface IWriter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |