--- /dev/null
+package org.vamsas.test.simpleclient;
+
+import java.io.BufferedInputStream;
+import java.io.File;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+
+import org.vamsas.client.simpleclient.*;
+import org.vamsas.objects.core.VAMSAS;
+import org.vamsas.objects.core.VamsasDocument;
+
+public class VamsasArchive {
+ /**
+ * test the org.vamsas.simpleclient.vamsasArchive class
+ */
+ public static void main(String args[]) {
+
+ try {
+ File av = new File(args[0]);
+ org.vamsas.client.simpleclient.VamsasArchive varchive = new org.vamsas.client.simpleclient.VamsasArchive(av, true);
+ File backup = varchive.backupFile();
+
+ VAMSAS[] roots = (VAMSAS[]) varchive.getOriginalRoots();
+ if (roots!=null)
+ ArchiveReports.rootReport(roots);
+ // do some stuff
+
+ if (backup!=null) {
+ System.out.println("Backup is : "+backup);
+ }
+ } catch (Exception e) {
+ e.printStackTrace(System.err);
+ }
+ }
+}