public class ImmobiliareItWritingExample extends Object
This example illustrates the programatic creation of documents for immobiliare.it and how they are written into XML.
Type | Property and Description |
---|---|
protected static Feed.Properties.Property |
create
Create a
Feed.Properties.Property with some example data. |
Constructor and Description |
---|
ImmobiliareItWritingExample() |
Modifier and Type | Method and Description |
---|---|
protected static PictureProject |
createPicture()
Create a
PictureProject with some example data. |
protected static PictureExtended |
createPictureExtended()
Create a
PictureExtended with some example data. |
protected static Feed.Properties.Property |
createProperty()
Create a
Feed.Properties.Property with some example data. |
protected static VideoProject |
createVideo()
Create a
VideoProject with some example data. |
static void |
main(String[] args)
Start the example application.
|
protected static void |
write(ImmobiliareItDocument doc,
File file)
Write an
ImmobiliareItDocument into a File . |
protected static void |
write(ImmobiliareItDocument doc,
OutputStream output)
Write an
ImmobiliareItDocument into an OutputStream . |
protected static void |
write(ImmobiliareItDocument doc,
Writer output)
Write an
ImmobiliareItDocument into a Writer . |
protected static void |
writeToConsole(ImmobiliareItDocument doc)
Write an
ImmobiliareItDocument into a String and print the
results to the console. |
Feed.Properties.Property
with some example data.public static void main(String[] args)
args
- command line argumentsprotected static Feed.Properties.Property createProperty()
Feed.Properties.Property
with some example data.protected static PictureProject createPicture()
PictureProject
with some example data.protected static PictureExtended createPictureExtended()
PictureExtended
with some example data.protected static VideoProject createVideo()
VideoProject
with some example data.protected static void write(ImmobiliareItDocument doc, File file)
ImmobiliareItDocument
into a File
.doc
- the document to writefile
- the file, where the document is written toprotected static void write(ImmobiliareItDocument doc, OutputStream output)
ImmobiliareItDocument
into an OutputStream
.doc
- the document to writeoutput
- the stream, where the document is written toprotected static void write(ImmobiliareItDocument doc, Writer output)
ImmobiliareItDocument
into a Writer
.doc
- the document to writeoutput
- the writer, where the document is written toprotected static void writeToConsole(ImmobiliareItDocument doc)
ImmobiliareItDocument
into a String
and print the
results to the console.doc
- the document to writeCopyright © 2015 OpenEstate. All rights reserved.