|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jmatchparser.util.csv.AbstractCSVWriter
net.sf.jmatchparser.util.csv.PropertiesCSVWriter
public class PropertiesCSVWriter
Class to create a Properties
file as if it was a CSV (Comma Separated
Value) file.
Constructor Summary | |
---|---|
PropertiesCSVWriter(OutputStream out,
int firstIndex,
Format... columnFormats)
Create a new PropertiesCSVWriter that writes to the given output
stream. |
|
PropertiesCSVWriter(OutputStream out,
int firstIndex,
String... columnFormats)
Create a new PropertiesCSVWriter that writes to the given output
stream. |
|
PropertiesCSVWriter(Properties properties,
int firstIndex,
Format... columnFormats)
Create a new PropertiesCSVWriter that writes to the given
Properties file. |
|
PropertiesCSVWriter(Properties properties,
int firstIndex,
String... columnFormats)
Create a new PropertiesCSVWriter that writes to the given
Properties file. |
Method Summary | |
---|---|
void |
close()
Close this CSV writer. |
void |
flush()
Flush this CSV writer. |
void |
write(String... record)
Write a record (line) into this CSV file. |
Methods inherited from class net.sf.jmatchparser.util.csv.AbstractCSVWriter |
---|
write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertiesCSVWriter(Properties properties, int firstIndex, String... columnFormats)
PropertiesCSVWriter
that writes to the given
Properties
file. Each columnFormat is evaluated for each row
number to return the respective property name for this column.
properties
- Property file to write tofirstIndex
- index of the first rowcolumnFormats
- column formatspublic PropertiesCSVWriter(Properties properties, int firstIndex, Format... columnFormats)
PropertiesCSVWriter
that writes to the given
Properties
file. Each columnFormat is evaluated for each row
number to return the respective property name for this column.
properties
- Property file to write tofirstIndex
- index of the first rowcolumnFormats
- column formatspublic PropertiesCSVWriter(OutputStream out, int firstIndex, String... columnFormats)
PropertiesCSVWriter
that writes to the given output
stream. Each columnFormat is evaluated for each row number to return the
respective property name for this column.
out
- Output stream to write tofirstIndex
- index of the first rowcolumnFormats
- column formatspublic PropertiesCSVWriter(OutputStream out, int firstIndex, Format... columnFormats)
PropertiesCSVWriter
that writes to the given output
stream. Each columnFormat is evaluated for each row number to return the
respective property name for this column.
out
- Output stream to write tofirstIndex
- index of the first rowcolumnFormats
- column formatsMethod Detail |
---|
public void flush() throws IOException
AbstractCSVWriter
flush
in class AbstractCSVWriter
IOException
public void close() throws IOException
AbstractCSVWriter
close
in class AbstractCSVWriter
IOException
public void write(String... record) throws IOException
AbstractCSVWriter
write
in class AbstractCSVWriter
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |