this.archive = archive; // archive is written in place.
virginArchive = true;
}
- this.openArchive();
+ this.openArchive(); // open archive
}
/**
* name of backup of existing archive that has been updated/overwritten.
if (unmarsh==null)
log.fatal("Couldn't unmarshall document!");
- object[] vobjs = (object[]) unmarsh[0];
+ object vobjs = (object) unmarsh[0];
if (vobjs!=null) {
- VamsasDocument doc=(VamsasDocument) vobjs[0];
+ VamsasDocument doc=(VamsasDocument) vobjs;
if (doc!=null)
return doc;
}
}
public void putVamsasDocument(VamsasDocument doc) throws IOException,
org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
- VorbaIdFactory vorba = makeDefaultFactory(null);
+ VorbaIdFactory vorba = makeDefaultFactory(getVorba());
VorbaXmlBinder.putVamsasDocument(getDocumentOutputStream(), vorba, doc);
}
}