From 6d90708f65a2bf9c25759e482661b5ca81fe2f8a Mon Sep 17 00:00:00 2001 From: jprocter Date: Mon, 23 Jan 2006 14:14:59 +0000 Subject: [PATCH] beginning refactoring of locked IO for lists. 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 | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/org/vamsas/client/simpleclient/ListFile.java diff --git a/src/org/vamsas/client/simpleclient/ListFile.java b/src/org/vamsas/client/simpleclient/ListFile.java new file mode 100644 index 0000000..30956e9 --- /dev/null +++ b/src/org/vamsas/client/simpleclient/ListFile.java @@ -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(); + } + +} -- 1.7.10.2