Юмор →
Трудовые будни становятся чуточку веселее
public void commitChanges() throws TransformerException, IOException {
Transformer optimusPrime = TransformerFactory.newInstance().newTransformer();
optimusPrime.setOutputProperty(OutputKeys.INDENT, "yes");
StreamResult robot = new StreamResult(file);
DOMSource truck = new DOMSource(documentRoot);
optimusPrime.transform(truck, robot);
logger.info("Commited " + numberOfChanges.get() + " changes to " + file.getName());
numberOfChanges.set(0);
}
* This source code was highlighted with Source Code Highlighter.
Улыбнитесь :)
11.03.2010 23:52+0300