* contacts.
*
* @author niki
- *
*/
public class Card extends BaseClass<Contact> {
private File file;
return false;
BufferedWriter writer = new BufferedWriter(new FileWriter(file));
- Parser.write(writer, format, this);
- writer.close();
+ try {
+ Parser.write(writer, format, this);
+ } finally {
+ writer.close();
+ }
if (this.file != null
&& file.getCanonicalPath().equals(this.file.getCanonicalPath())) {