Package com.android.sdklib.devices
Class DeviceWriter
- java.lang.Object
-
- com.android.sdklib.devices.DeviceWriter
-
public class DeviceWriter extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidwriteToXml(java.io.OutputStream out, java.util.Collection<Device> devices)Writes the XML definition of the givenCollectionofDevices according toDeviceSchema.NS_DEVICES_URIto theOutputStream.
-
-
-
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.TransformerExceptionWrites the XML definition of the givenCollectionofDevices according toDeviceSchema.NS_DEVICES_URIto theOutputStream. Note that it is up to the caller to close theOutputStream.- Parameters:
out- TheOutputStreamto write the resulting XML to.devices- TheDevices from which to generate the XML.- Throws:
javax.xml.parsers.ParserConfigurationExceptionjavax.xml.transform.TransformerFactoryConfigurationErrorjavax.xml.transform.TransformerException
-
-