this.file = file;
switch (format) {
case VCard21:
- this.name = file.getName().replaceAll(
- ".[vV][cC][fF]$", "");
+ this.name = file.getName().replaceAll(".[vV][cC][fF]$", "");
break;
case Abook:
default:
}
/**
- * Return the input which was used to open this {@link Card}.
+ * Return the {@link File} which was used to open this {@link Card}.
*
* @return the input
*/
- public File getInput() {
+ public File getFile() {
return file;
}
return toString(Format.VCard21);
}
+ @Override
+ public String getId() {
+ return "" + name;
+ }
+
+ @Override
+ public String getState() {
+ return "" + name + format;
+ }
+
/**
* Load the data from the given {@link File} under the given {@link Format}.
*