beginning refactoring of locked IO for lists.
authorjprocter <jprocter@compbio.dundee.ac.uk>
Mon, 23 Jan 2006 14:14:59 +0000 (14:14 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Mon, 23 Jan 2006 14:14:59 +0000 (14:14 +0000)
git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@165 be28352e-c001-0410-b1a7-c7978e42abec

src/org/vamsas/client/simpleclient/ListFile.java [new file with mode: 0644]

diff --git a/src/org/vamsas/client/simpleclient/ListFile.java b/src/org/vamsas/client/simpleclient/ListFile.java
new file mode 100644 (file)
index 0000000..30956e9
--- /dev/null
@@ -0,0 +1,25 @@
+/**
+ * 
+ */
+package org.vamsas.client.simpleclient;
+
+import java.io.File;
+
+
+/**
+ * base class for generic list storage and retrieval operations from a locked IO file
+ *  TODO: LATER: generalize for all list storage and retrieval operations 
+ *  (pull-up from ClientsFile object)
+ */
+public class ListFile extends SessionFile {
+
+  /**
+   * @param file
+   */
+  public ListFile(File file) throws java.io.IOException {
+    super(file);
+    if (!this.sessionFile.exists())
+      this.sessionFile.createNewFile();
+  }
+
+}