public class Is24CsvWritingExample extends Object
This example illustrates the programatic creation of an IS24-CSV document, and how the document is written into CSV.
Constructor and Description |
---|
Is24CsvWritingExample() |
Modifier and Type | Method and Description |
---|---|
protected static Is24CsvRecord |
createHausKaufRecord()
Create an
HausKauf with some example data. |
protected static Is24CsvRecord |
createWohnungMieteRecord()
Create an
WohnungMiete with some example data. |
protected static void |
init(Is24CsvRecord obj)
Init common values of an
Is24CsvRecord . |
static void |
main(String[] args)
Start the example application.
|
protected static void |
write(List<Is24CsvRecord> records,
File file)
Write some
Is24CsvRecord objects into a File . |
protected static void |
write(List<Is24CsvRecord> records,
OutputStream output)
Write some
Is24CsvRecord objects into an OutputStream . |
protected static void |
write(List<Is24CsvRecord> records,
Writer output)
Write some
Is24CsvRecord objects into a Writer . |
protected static void |
writeToConsole(List<Is24CsvRecord> records)
Write some
Is24CsvRecord objects into a String and print the
results to the console. |
public static void main(String[] args)
args
- command line argumentsprotected static Is24CsvRecord createHausKaufRecord()
HausKauf
with some example data.protected static Is24CsvRecord createWohnungMieteRecord()
WohnungMiete
with some example data.protected static void init(Is24CsvRecord obj)
Is24CsvRecord
.obj
- record to initprotected static void write(List<Is24CsvRecord> records, File file)
Is24CsvRecord
objects into a File
.records
- the CSV records to writefile
- the file, where the document is written toprotected static void write(List<Is24CsvRecord> records, OutputStream output)
Is24CsvRecord
objects into an OutputStream
.records
- the CSV records to writeoutput
- the stream, where the document is written toprotected static void write(List<Is24CsvRecord> records, Writer output)
Is24CsvRecord
objects into a Writer
.records
- the CSV records to writeoutput
- the writer, where the document is written toprotected static void writeToConsole(List<Is24CsvRecord> records)
Is24CsvRecord
objects into a String
and print the
results to the console.records
- the CSV records to writeCopyright © 2015 OpenEstate. All rights reserved.