Package com.exlibris.primo.api.spliter.plugin

Examples of com.exlibris.primo.api.spliter.plugin.RecordData


  public void parse(InputStream input, File file, IRecordSaver saver) throws Exception {
    logger.info("super.parse()");
   
    // for testing purposes
    for(int i = 0; i < 2; i++) {
      RecordData record = new RecordData(i + "", "<record><id>" + i + "</id><title>Title " + i + "</title></record>", false);
      saver.save(record);
    }
   
    for(int i = 2; i < 4; i++) {
      RecordData record = new RecordData(i + "", "<record />", true);
      saver.save(record);
    }
  }
View Full Code Here

TOP

Related Classes of com.exlibris.primo.api.spliter.plugin.RecordData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.