Revision 48023
Added by Claudio Atzori almost 7 years ago
FileCSVCollectorPlugin.java | ||
---|---|---|
21 | 21 |
import eu.dnetlib.data.collector.rmi.CollectorServiceException; |
22 | 22 |
import eu.dnetlib.data.collector.rmi.InterfaceDescriptor; |
23 | 23 |
|
24 |
/** |
|
25 |
* Please use eu.dnetlib.data.collector.plugins.HttpCSVCollectorPlugin instead |
|
26 |
*/ |
|
27 |
@Deprecated |
|
24 | 28 |
public class FileCSVCollectorPlugin extends AbstractCollectorPlugin { |
25 | 29 |
|
26 | 30 |
private static final Log log = LogFactory.getLog(FileCSVCollectorPlugin.class); |
... | ... | |
136 | 140 |
} |
137 | 141 |
} else headers = tmpHeader; |
138 | 142 |
} |
139 |
return new Iterable<String>() { |
|
140 |
|
|
141 |
@Override |
|
142 |
public Iterator<String> iterator() { |
|
143 |
return new FileCSVIterator(br, separator, quote); |
|
144 |
} |
|
145 |
}; |
|
143 |
return () -> new FileCSVIterator(br, separator, quote); |
|
146 | 144 |
} catch (final Exception e) { |
147 | 145 |
throw new CollectorServiceException(e); |
148 | 146 |
} |
Also available in: Unified diff
integrated latest changes from dnet40