Package pulse.io.export
Class XMLConverter
- java.lang.Object
-
- pulse.io.export.XMLConverter
-
public class XMLConverter extends Object
Used to read and write XML files containing information about the defaultNumericProperties. Is invoked at program start to retrieve the information XML file in the resource folder.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<NumericProperty>readDefaultXML()The default XML file is specific in the 'messages.properties' text file in thepulse.uipackagestatic List<NumericProperty>readXML(InputStream inputStream)Utility method used to readNumericPropertyconstants fromxmlfiles.static voidwriteXML()Utility method that creates an.xmlfile listing all public final static instances ofNumericPropertyfound in theNumericPropertyclass.
-
-
-
Method Detail
-
writeXML
public static void writeXML() throws ParserConfigurationException, TransformerExceptionUtility method that creates an.xmlfile listing all public final static instances ofNumericPropertyfound in theNumericPropertyclass.
-
readXML
public static List<NumericProperty> readXML(InputStream inputStream) throws ParserConfigurationException, SAXException, IOException
Utility method used to readNumericPropertyconstants fromxmlfiles.- Parameters:
inputStream- the input stream used to read data from.- Returns:
- a list of
NumericPropertyobjects with their attributes specified in thexmlfile. - Throws:
ParserConfigurationExceptionSAXExceptionIOException
-
readDefaultXML
public static List<NumericProperty> readDefaultXML()
The default XML file is specific in the 'messages.properties' text file in thepulse.uipackage- Returns:
- a list of default instances of
NumericProperty.
-
-