public class OpenImmoReadingExample extends Object
This example illustrates how to read OpenImmo files.
| Constructor and Description |
|---|
OpenImmoReadingExample() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Start the example application.
|
protected static void |
printToConsole(OpenImmoFeedbackDocument doc)
Print some content of an
OpenImmoFeedbackDocument to console. |
protected static void |
printToConsole(OpenImmoTransferDocument doc)
Print some content of an
OpenImmoTransferDocument to console. |
protected static void |
read(File xmlFile)
Read a
File into an OpenImmoTransferDocument or
OpenImmoFeedbackDocument and print some of their content to
console. |
protected static void |
read(InputStream xmlInputStream)
Read a
InputStream into an OpenImmoTransferDocument or
OpenImmoFeedbackDocument and print some of their content to
console. |
public static void main(String[] args)
args - command line argumentsprotected static void read(File xmlFile) throws SAXException, IOException, ParserConfigurationException, JAXBException
File into an OpenImmoTransferDocument or
OpenImmoFeedbackDocument and print some of their content to
console.xmlFile - the file to readSAXException - if the file is not readable by the XML parserIOException - if the file is not readableParserConfigurationException - if the XML parser is improperly configuredJAXBException - if XML conversion into Java objects failedprotected static void read(InputStream xmlInputStream) throws SAXException, IOException, ParserConfigurationException, JAXBException
InputStream into an OpenImmoTransferDocument or
OpenImmoFeedbackDocument and print some of their content to
console.xmlInputStream - the input stream to readSAXException - if the file is not readable by the XML parserIOException - if the file is not readableParserConfigurationException - if the XML parser is improperly configuredJAXBException - if XML conversion into Java objects failedprotected static void printToConsole(OpenImmoFeedbackDocument doc) throws JAXBException
OpenImmoFeedbackDocument to console.doc - the document to processJAXBException - if XML conversion into Java objects failedprotected static void printToConsole(OpenImmoTransferDocument doc) throws JAXBException
OpenImmoTransferDocument to console.doc - the document to processJAXBException - if XML conversion into Java objects failedCopyright © 2015 OpenEstate. All rights reserved.