Package org.beangle.model.transfer.io

Examples of org.beangle.model.transfer.io.ItemReader


import org.beangle.model.transfer.io.ItemReader;

public class DescriptionAttrPrepare implements ImportPrepare {

  public void prepare(Importer importer) {
    ItemReader reader = (ItemReader) importer.getReader();
    String[] descs = reader.readDescription();
    String[] attrs = reader.readTitle();
    Map<String, String> descriptions = CollectUtils.newHashMap();
    for (int i = 0; i < attrs.length && i < descs.length; i++) {
      descriptions.put(attrs[i], descs[i]);
    }
    ((AbstractItemImporter) importer).setAttrs(attrs);
View Full Code Here


import org.beangle.model.transfer.io.ItemReader;

public class DescriptionAttrPrepare implements ImportPrepare {

  public void prepare(Importer importer) {
    ItemReader reader = (ItemReader) importer.getReader();
    String[] descs = reader.readDescription();
    String[] attrs = reader.readTitle();
    Map<String, String> descriptions = CollectUtils.newHashMap();
    for (int i = 0; i < attrs.length && i < descs.length; i++) {
      descriptions.put(attrs[i], descs[i]);
    }
    ((AbstractItemImporter) importer).setAttrs(attrs);
View Full Code Here

TOP

Related Classes of org.beangle.model.transfer.io.ItemReader

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.