From b9476960f6d983575f3a435e69cd105dc0faf868 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 11 Nov 2005 18:07:39 +0000 Subject: [PATCH] basics of arhiveWriter git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@92 be28352e-c001-0410-b1a7-c7978e42abec --- .../vamsas/client/simpleclient/VamsasArchive.java | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/org/vamsas/client/simpleclient/VamsasArchive.java diff --git a/src/org/vamsas/client/simpleclient/VamsasArchive.java b/src/org/vamsas/client/simpleclient/VamsasArchive.java new file mode 100644 index 0000000..e008464 --- /dev/null +++ b/src/org/vamsas/client/simpleclient/VamsasArchive.java @@ -0,0 +1,29 @@ +package org.vamsas.client.simpleclient; + +import java.io.File; +import java.util.jar.JarOutputStream; + +/** + * Class for creating a vamsas archive + * (with backups) + * @author jimp + * + */ +public class VamsasArchive { + java.io.File archive; + java.io.File backup=null; + boolean vamsasdocument=true; // make a document archive (rather than a vamsas.xml archive) + JarOutputStream newarchive=null; + /** + * Create a new vamsas archive + * @param archive - file spec for new vamsas archive + * @param vamsasdocument true if archive is to be a fully fledged vamsas document archive + */ + public VamsasArchive(File archive, boolean vamsasdocument) { + super(); + this.archive = archive; + + this.vamsasdocument = vamsasdocument; + } + +} -- 1.7.10.2