Class FullXmlConverter


  • public class FullXmlConverter
    extends DataConverter
    Loads InterMine XML into an items database. This is an alternative to XmlDataLoader, and it can cope with large input files.
    Author:
    Matthew Wakeling
    • Field Detail

      • count

        protected long count
      • start

        protected long start
      • time

        protected long time
      • times

        protected long[] times
    • Constructor Detail

      • FullXmlConverter

        public FullXmlConverter​(ItemWriter writer,
                                Model model)
        Constructor.
        Parameters:
        writer - an ItemWriter to accept the loaded Items
        model - the data model
    • Method Detail

      • process

        public void process​(java.io.Reader in)
                     throws java.lang.Exception
        Unmarshal the Items from the input XML file, and write them to the writer.
        Parameters:
        in - a Reader containing the XML text input
        Throws:
        java.lang.Exception - if an error occurs