public class IdxWritingExample extends Object
This example illustrates the programatic creation of IDX records and how they are written into CSV.
Constructor and Description |
---|
IdxWritingExample() |
Modifier and Type | Method and Description |
---|---|
protected static IdxRecord |
createRecord()
Create an
IdxRecord with some example data. |
static void |
main(String[] args)
Start the example application.
|
protected static void |
write(List<IdxRecord> records,
File file)
|
protected static void |
write(List<IdxRecord> records,
OutputStream output)
Write some
IdxRecord objects into an OutputStream . |
protected static void |
write(List<IdxRecord> records,
Writer output)
|
protected static void |
writeToConsole(List<IdxRecord> records)
|
public static void main(String[] args)
args
- command line argumentsprotected static IdxRecord createRecord()
IdxRecord
with some example data.protected static void write(List<IdxRecord> records, File file)
records
- the CSV records to writefile
- the file, where the document is written toprotected static void write(List<IdxRecord> records, OutputStream output)
IdxRecord
objects into an OutputStream
.records
- the CSV records to writeoutput
- the stream, where the document is written toprotected static void write(List<IdxRecord> records, Writer output)
records
- the CSV records to writeoutput
- the writer, where the document is written toCopyright © 2015 OpenEstate. All rights reserved.