Class DeviceWriter


  • public class DeviceWriter
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String LOCAL_NS  
      static java.lang.String PREFIX  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void writeToXml​(java.io.OutputStream out, java.util.Collection<Device> devices)
      Writes the XML definition of the given Collection of Devices according to DeviceSchema.NS_DEVICES_URI to the OutputStream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • writeToXml

        public static void writeToXml​(java.io.OutputStream out,
                                      java.util.Collection<Device> devices)
                               throws javax.xml.parsers.ParserConfigurationException,
                                      javax.xml.transform.TransformerFactoryConfigurationError,
                                      javax.xml.transform.TransformerException
        Writes the XML definition of the given Collection of Devices according to DeviceSchema.NS_DEVICES_URI to the OutputStream. Note that it is up to the caller to close the OutputStream.
        Parameters:
        out - The OutputStream to write the resulting XML to.
        devices - The Devices from which to generate the XML.
        Throws:
        javax.xml.parsers.ParserConfigurationException
        javax.xml.transform.TransformerFactoryConfigurationError
        javax.xml.transform.TransformerException