public class MapPopulator<K,V> extends Object
If this is handy for other use cases pleaes move this class into a common module
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
MapPopulator.PopulateResult  | 
| Constructor and Description | 
|---|
MapPopulator(Parser<K,V> parser)  | 
| Modifier and Type | Method and Description | 
|---|---|
MapPopulator.PopulateResult | 
populate(com.google.common.io.ByteSource source,
        Map<K,V> map)
Read through the `source` line by line and populate `map` with the data returned from the `parser` 
 | 
public MapPopulator.PopulateResult populate(com.google.common.io.ByteSource source, Map<K,V> map) throws IOException
source - The ByteSource to read lines frommap - The map to populateIOExceptionCopyright © 2011–2018. All rights reserved.