From: jprocter Date: Mon, 23 Jan 2006 14:14:59 +0000 (+0000) Subject: beginning refactoring of locked IO for lists. X-Git-Tag: Release_0.2~355 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=6d90708f65a2bf9c25759e482661b5ca81fe2f8a;p=vamsas.git 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 --- 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(); + } + +}