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);