use of org.collectd.api.DataSet in project jcollectd by collectd.
the class TypesDB method load.
public void load(InputStream is) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(is));
String line;
while ((line = reader.readLine()) != null) {
DataSet ds;
ds = DataSet.parseDataSet(line);
if (ds != null) {
String type = ds.getType();
List<DataSource> dsrc = ds.getDataSources();
this._types.put(type, dsrc);
}
}
}
Aggregations