SimpleClientAppdata implemented but untested.
[vamsas.git] / src / org / vamsas / client / simpleclient / VamsasSession.java
index 6f41fb7..365311d 100644 (file)
@@ -292,7 +292,19 @@ public class VamsasSession {
     
     return va;
   }
-  
+  /**
+   * create a uniquely named file in the session Directory
+   * @see java.io.File.createTempFile
+   * @param pref Prefix for name
+   * @param suff Suffix for name
+   * @return SessionFile object configured for the new file (of length zero)
+   * @throws IOException
+   */
+  protected SessionFile getTempSessionFile(String pref, String suff) throws IOException {
+    File tfile = File.createTempFile(pref,suff,sessionDir);
+    SessionFile tempFile = new SessionFile(tfile);
+    return tempFile;
+  }
 }