org.universAAL.lddi.knx.devicemanager
Class KnxImporter
java.lang.Object
org.universAAL.lddi.knx.devicemanager.KnxImporter
public class KnxImporter
- extends Object
The class takes a ets4 export file as inputstream and creates a list of
KnxGroupAddress objects including building part information if available Name
and description of building parts are editable in ETS; type is fixed: Floor,
Room, Corridor, Cabinet, Stairway or Building Part
This class is only tested with ETS4 XML data schema 1.0 and 1.1 ! Higher
schema versions may require refinement of this code !!
- Author:
- marcus@openremote.org, Thomas Fuxreiter (foex@gmx.at)
Constructor Summary |
KnxImporter(org.osgi.service.log.LogService logger)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KnxImporter
public KnxImporter(org.osgi.service.log.LogService logger)
- Parameters:
logger
-
importETS4Configuration
public List<KnxGroupAddress> importETS4Configuration(InputStream inputStream)
throws Exception
- This method can import ETS4 XML data schemas version 1.0 and 1.1 Higher
schema versions may require refinement of this code !!
- Parameters:
inputStream
- of ETS4 export file (zip file)
- Returns:
- list of KnxGroupAddress objects
- Throws:
Exception
importETS3GroupAddressCsvExport
public List<KnxGroupAddress> importETS3GroupAddressCsvExport(InputStream inputStream)
throws Exception
- Throws:
Exception
convertStreamToString
public static String convertStreamToString(InputStream is)
throws IOException
- Throws:
IOException
getAddressFromInt
public static String getAddressFromInt(int knxaddress)
- Transform a plain integer KNX group address to 1/2/3 format.
- Parameters:
knxaddress
-
- Returns:
- readable group address
Copyright © 2014 universAAL Consortium. All Rights Reserved.