rchive = new SessionFile(archive);
if (!rchive.lockFile())
throw new IOException("Failed to get lock on file "+archive);
- newarchive = new JarOutputStream(new BufferedOutputStream(new java.io.FileOutputStream(archive)));
+ newarchive = new JarOutputStream(rchive.fileLock.getBufferedOutputStream(true));
entries = new Hashtable();
}
public void putVamsasDocument(VamsasDocument doc) throws IOException,