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