@Test public void testSetOutputProperty() throws Exception { StringWriter writer = new StringWriter(); XMLSerializer xmlSerializer = new XMLSerializer(writer); assertNotNull(xmlSerializer); xmlSerializer.setOutputProperty(OutputKeys.STANDALONE, "yes"); TransformerHandler thd = xmlSerializer.getTHandler(); thd.startDocument(); thd.endDocument(); String result = writer.toString(); assertTrue(result.contains(OutputKeys.STANDALONE)); XMLSerializer xmlSerializer1 = new XMLSerializer(); assertNotNull(xmlSerializer1); xmlSerializer1.setOutputProperty(OutputKeys.STANDALONE, "no"); thd = xmlSerializer1.getTHandler(); result = thd.getTransformer().getOutputProperty(OutputKeys.STANDALONE); assertEquals("no", result); }
public void setOutputProperty(String name, String value) { mTransformer.setOutputProperty(name, value); Result result = createSaxResult(); if (result != null) { mHandler.setResult(result); } }
XMLSerializer { public void setOutputProperty(String name, String value) { mTransformer.setOutputProperty(name, value); Result result = createSaxResult(); if (result != null) { mHandler.setResult(result); } } }
XMLSerializer { public void setOutputProperty(String name, String value) { mTransformer.setOutputProperty(name, value); Result result = createSaxResult(); if (result != null) { mHandler.setResult(result); } } XMLSerializer();  XMLSerializer(String filename);  XMLSerializer(File fileHandle);  XMLSerializer(OutputStream outputStream);  XMLSerializer(Writer writer); }
XMLSerializer { public void setOutputProperty(String name, String value) { mTransformer.setOutputProperty(name, value); Result result = createSaxResult(); if (result != null) { mHandler.setResult(result); } } XMLSerializer();  XMLSerializer(String filename);  XMLSerializer(File fileHandle);  XMLSerializer(OutputStream outputStream);  XMLSerializer(Writer writer); void setOutputStream(String fileName); void setOutputStream(File fileHandle); void setOutputStream(OutputStream outputStream); void setWriter(Writer writer); void setOutputProperty(String name, String value); TransformerHandler getTHandler(); }
XMLSerializer { public void setOutputProperty(String name, String value) { mTransformer.setOutputProperty(name, value); Result result = createSaxResult(); if (result != null) { mHandler.setResult(result); } } XMLSerializer();  XMLSerializer(String filename);  XMLSerializer(File fileHandle);  XMLSerializer(OutputStream outputStream);  XMLSerializer(Writer writer); void setOutputStream(String fileName); void setOutputStream(File fileHandle); void setOutputStream(OutputStream outputStream); void setWriter(Writer writer); void setOutputProperty(String name, String value); TransformerHandler getTHandler();  }