Constructor and Description |
---|
DaftIeWritingExample() |
Modifier and Type | Method and Description |
---|---|
protected static OverseasRentalAdType |
createAdForRent()
Create an
OverseasRentalAdType with some example data. |
protected static OverseasSaleAdType |
createAdForSale()
Create an
OverseasRentalAdType with some example data. |
static void |
main(String[] args)
Start the example application.
|
protected static void |
write(DaftIeDocument doc,
File file)
Write a
DaftIeDocument into a File . |
protected static void |
write(DaftIeDocument doc,
OutputStream output)
Write a
DaftIeDocument into an OutputStream . |
protected static void |
write(DaftIeDocument doc,
Writer output)
Write a
DaftIeDocument into a Writer . |
protected static void |
writeToConsole(DaftIeDocument doc)
Write a
DaftIeDocument into a String and print the
results to the console. |
public static void main(String[] args)
args
- command line argumentsprotected static OverseasRentalAdType createAdForRent()
OverseasRentalAdType
with some example data.protected static OverseasSaleAdType createAdForSale()
OverseasRentalAdType
with some example data.protected static void write(DaftIeDocument doc, File file)
DaftIeDocument
into a File
.doc
- the document to writefile
- the file, where the document is written toprotected static void write(DaftIeDocument doc, OutputStream output)
DaftIeDocument
into an OutputStream
.doc
- the document to writeoutput
- the stream, where the document is written toprotected static void write(DaftIeDocument doc, Writer output)
DaftIeDocument
into a Writer
.doc
- the document to writeoutput
- the writer, where the document is written toprotected static void writeToConsole(DaftIeDocument doc)
DaftIeDocument
into a String
and print the
results to the console.doc
- the document to writeCopyright © 2015 OpenEstate. All rights reserved.