uk.ac.vamsas.test.simpleclient
Class ArchiveWriter

java.lang.Object
  extended byuk.ac.vamsas.test.simpleclient.ArchiveWriter

public class ArchiveWriter
extends java.lang.Object


Constructor Summary
ArchiveWriter()
           
 
Method Summary
static void addAppDataEntry(VamsasArchive darc, VamsasDocument dest, VamsasArchiveReader sarc, ApplicationData entry)
          safely copies an appData from one archive to another.
static java.util.Hashtable hashOfAppDatas(java.util.Hashtable ht, Instance[] appdatas)
           
static void main(java.lang.String[] argv)
           
static boolean mergeDocs(VamsasArchive darc, VamsasDocument dest, VamsasArchiveReader sarc, VamsasDocument source)
          Copy new datasets and appdatas from one vamsas document to another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArchiveWriter

public ArchiveWriter()
Method Detail

hashOfAppDatas

public static java.util.Hashtable hashOfAppDatas(java.util.Hashtable ht,
                                                 Instance[] appdatas)

addAppDataEntry

public static void addAppDataEntry(VamsasArchive darc,
                                   VamsasDocument dest,
                                   VamsasArchiveReader sarc,
                                   ApplicationData entry)
safely copies an appData from one archive to another.

Parameters:
darc - destination archive
dest - destination document Vobject
sarc - source archive reader
entry - application data to be copied from source archive

mergeDocs

public static boolean mergeDocs(VamsasArchive darc,
                                VamsasDocument dest,
                                VamsasArchiveReader sarc,
                                VamsasDocument source)
Copy new datasets and appdatas from one vamsas document to another.

Parameters:
darc -
dest -
sarc -
source -
Returns:
true if merge was successful.

main

public static void main(java.lang.String[] argv)