}
private static Map<Integer, String> parseTextFileHelper(String input) throws IOException {
final Map<Integer, String> mappings = new HashMap<Integer, String>();
GeneratePhonePrefixData.parseTextFile(new ByteArrayInputStream(input.getBytes()),
new PhonePrefixMappingHandler() {
@Override
public void process(int phonePrefix, String location) {
mappings.put(phonePrefix, location);
}
});