|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jmatchparser.util.csv.AbstractCSVWriter
public abstract class AbstractCSVWriter
Abstract base class to read data from several CSV-like file formats.
| Constructor Summary | |
|---|---|
AbstractCSVWriter()
|
|
| Method Summary | ||
|---|---|---|
abstract void |
close()
Close this CSV writer. |
|
abstract void |
flush()
Flush this CSV writer. |
|
|
write(Map<T,String> recordMap,
T[] headers)
Write an "indirect" record, consisting of a Map of headers to
values, and a header list. |
|
abstract void |
write(String... record)
Write a record (line) into this CSV file. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractCSVWriter()
| Method Detail |
|---|
public abstract void flush()
throws IOException
IOException
public abstract void close()
throws IOException
IOException
public abstract void write(String... record)
throws IOException
IOException
public final <T> void write(Map<T,String> recordMap,
T[] headers)
throws IOException
Map of headers to
values, and a header list. Values that do not exist in the map are
assumed to be empty.
recordMap - map to map headers to valuesheaders - headers
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||