use of delta.games.lotro.stats.traitPoints.io.xml.TraitPointsStatusXMLWriter in project lotro-companion by dmorcellet.
the class TraitPoints method save.
/**
* Save the trait points status for a character.
* @param character Targeted character.
* @param status Status to save.
* @return <code>true</code> if it succeeds, <code>false</code> otherwise.
*/
public boolean save(CharacterFile character, TraitPointsStatus status) {
File toFile = getStatusFile(character);
TraitPointsStatusXMLWriter writer = new TraitPointsStatusXMLWriter();
boolean ok = writer.write(toFile, status, EncodingNames.UTF_8);
return ok;
}
Aggregations