Package org.intermine.dataloader
Class XmlDataLoader
- java.lang.Object
-
- org.intermine.dataloader.DataLoader
-
- org.intermine.dataloader.XmlDataLoader
-
public class XmlDataLoader extends DataLoader
Provides a method for unmarshalling XML given source into java business objects then calls store on each. store() is AbstractDataLoader.store().- Author:
- Richard Smith
-
-
Constructor Summary
Constructors Constructor Description XmlDataLoader(IntegrationWriter iw)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Perform any necessary clean-up and close the integration writervoidprocessXml(java.io.InputStream is, Source source, Source skelSource)Static method to unmarshall business objects from a given xml file and call store on each.-
Methods inherited from class org.intermine.dataloader.DataLoader
getIntegrationWriter
-
-
-
-
Constructor Detail
-
XmlDataLoader
public XmlDataLoader(IntegrationWriter iw)
- Parameters:
iw- an IntegrationWriter to use to write objects- See Also:
DataLoader(IntegrationWriter)
-
-
Method Detail
-
processXml
public void processXml(java.io.InputStream is, Source source, Source skelSource) throws InterMineExceptionStatic method to unmarshall business objects from a given xml file and call store on each.- Parameters:
is- access to xml filesource- the main sourceskelSource- the skeleton source- Throws:
InterMineException- if anything goes wrong with xml or storing
-
close
public void close() throws java.lang.ExceptionPerform any necessary clean-up and close the integration writer- Throws:
java.lang.Exception- if an error occurs
-
-