uk.ac.vamsas.test.simpleclient
Class ArchiveWriter
java.lang.Object
uk.ac.vamsas.test.simpleclient.ArchiveWriter
- public class ArchiveWriter
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArchiveWriter
public ArchiveWriter()
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 archivedest
- destination document Vobjectsarc
- source archive readerentry
- 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)