public class WisItWritingExample extends Object
This example illustrates the programatic creation of documents for wohnen-in-suedtirol.it and how they are written into XML.
Constructor and Description |
---|
WisItWritingExample() |
Modifier and Type | Method and Description |
---|---|
protected static ObjectType |
createOBJEKT()
Create an
ObjectType with some example data. |
static void |
main(String[] args)
Start the example application.
|
protected static void |
write(WisItDocument doc,
File file)
Write a
WisItDocument into a File . |
protected static void |
write(WisItDocument doc,
OutputStream output)
Write a
WisItDocument into an OutputStream . |
protected static void |
write(WisItDocument doc,
Writer output)
Write a
WisItDocument into a Writer . |
protected static void |
writeToConsole(WisItDocument doc)
Write a
WisItDocument into a String and print the
results to the console. |
public static void main(String[] args)
args
- command line argumentsprotected static ObjectType createOBJEKT()
ObjectType
with some example data.protected static void write(WisItDocument doc, File file)
WisItDocument
into a File
.doc
- the document to writefile
- the file, where the document is written toprotected static void write(WisItDocument doc, OutputStream output)
WisItDocument
into an OutputStream
.doc
- the document to writeoutput
- the stream, where the document is written toprotected static void write(WisItDocument doc, Writer output)
WisItDocument
into a Writer
.doc
- the document to writeoutput
- the writer, where the document is written toprotected static void writeToConsole(WisItDocument doc)
WisItDocument
into a String
and print the
results to the console.doc
- the document to writeCopyright © 2015 OpenEstate. All rights reserved.