@Test public void testSave() throws SAXParseException { URL resource = getClass().getResource("eml.xml"); File f = new File(resource.getFile()); XmlFileUpdater updater = new XmlFileUpdater(f); updater.readFile(); updater.updateFirstElement("pubDate", "2017-08-08T00:00:00"); updater.save(new File("/tmp/XmlFileUpdaterTest.xml")); }
public void save() { save(file); }
XmlFileUpdater { public void save() { save(file); } }
XmlFileUpdater { public void save() { save(file); } XmlFileUpdater(File file); }
XmlFileUpdater { public void save() { save(file); } XmlFileUpdater(File file); boolean isNamespaceAware(); void setNamespaceAware(boolean nsAware); boolean isValidating(); void setValidating(boolean validating); void readFile(); void updateFirstElement(String name, String value); void save(); void save(File file); void save(OutputStream out); }
XmlFileUpdater { public void save() { save(file); } XmlFileUpdater(File file); boolean isNamespaceAware(); void setNamespaceAware(boolean nsAware); boolean isValidating(); void setValidating(boolean validating); void readFile(); void updateFirstElement(String name, String value); void save(); void save(File file); void save(OutputStream out);  }