- static private List<Contact> load(File file, Format format)
- throws IOException {
- BufferedReader buffer = new BufferedReader(new InputStreamReader(
- new FileInputStream(file), "UTF-8"));
- List<String> lines = new LinkedList<String>();
- for (String line = buffer.readLine(); line != null; line = buffer
- .readLine()) {
- lines.add(line);
- }
- buffer.close();
+ public long getLastModified() {
+ return lastModified;
+ }
+
+ /**
+ * Check if this {@link Card} is remote.
+ *
+ * @return TRUE if this {@link Card} is remote
+ */
+ public boolean isRemote() {
+ return remote;
+ }
+
+ /**
+ * Set the remote option on this {@link Card}.
+ *
+ * @param remote
+ * TRUE if this {@link Card} is remote
+ */
+ public void setRemote(boolean remote) {
+ this.remote = remote;
+ }
+
+ @Override
+ public String toString() {
+ return toString(Format.VCard21);
+ }