probably deprecating this class.
[vamsas.git] / src / org / vamsas / client / simpleclient / VamsasFile.java
index 1c3a224..6ad634b 100644 (file)
@@ -33,21 +33,32 @@ public class VamsasFile extends SessionFile {
    * @throws java.io.IOException
    */
   public VamsasFile(File sessionFile) throws java.io.IOException {
-    
+    super(sessionFile);
   }
   /**
    * Expand a previously stored session into the sessionDir
    * @param sessionDir
    * @param storedSession
-   */
-  public VamsasFile(File sessionDir, JarFile storedSession) throws IOException {
+   
+   public VamsasFile(File sessionDir, JarFile storedSession) throws IOException {
     // check if sessionDir is live or not
+    if (!sessionDir.exists()) {
+      sessionDir.mkdir();
+    }
     
+    {
+      // check its actually a writable directory
+    }
+    
+    File sfile = new File(sessionDir, "vamsas.jar");
+    VamsasFile(sfile);
     // if live - try to merge storedSession with sessionDir
     //  - will probably fail through duplicate object references needing to be dereferenced.
     // TODO: think of a way of specifying vorba_id scope for an application's references to allow merging of one vamsasDocument with another.
     
   }
+  */
+  
   /**
    * gets a locked Reader for the vamsas document.
    * @return reader for vamsasdocument.xml enrty