com.android.sdklib.devices
Class DeviceWriter

java.lang.Object
  extended by com.android.sdklib.devices.DeviceWriter

public class DeviceWriter
extends java.lang.Object


Field Summary
static java.lang.String LOCAL_NS
           
static java.lang.String PREFIX
           
 
Method Summary
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
 

Field Detail

LOCAL_NS

public static final java.lang.String LOCAL_NS
See Also:
Constant Field Values

PREFIX

public static final java.lang.String PREFIX
See Also:
Constant Field Values
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