// Path: geo-locator/src/edu/cmu/geolocator/io/GetReader.java
// public class GetReader {
// 
//   public static BufferedReader getUTF8FileReader(String filename) throws FileNotFoundException,
//           UnsupportedEncodingException {
//     File file = new File(filename);
//     BufferedReader bin = new BufferedReader(new InputStreamReader(new FileInputStream(file),
//             "utf-8"));
//     return bin;
//   }
// 
//   public static IndexSearcher getIndexSearcherFromWriter(String filename) throws IOException {
//     IndexWriter iw = GetWriter.getIndexWriter(filename, 1024);
//     IndexReader ir = IndexReader.open(iw, false);
//     IndexSearcher searcher = new IndexSearcher(ir);
//     return searcher;
//   }
// 
//   public static IndexSearcher getIndexSearcher(String filename, String diskOrMem) throws Exception {
//     IndexReader reader;
//     Directory d ;
//     if (diskOrMem.equals("disk"))
//       d = FSDirectory.open(new File(filename));
//     else if (diskOrMem.equals("mmap"))
//       d=  MmapDirectory(new File(filename));
//     else
//       throw new Exception("parameter for directory type not defined.");
//     
//     if(OSUtil.isWindows())
//      reader = IndexReader.open(FSDirectory.open(new File(filename)));
//     else
//       reader = IndexReader.open(NIOFSDirectory.open(new File(filename))); 
//     IndexSearcher searcher = new IndexSearcher(reader);
//     return searcher;
//   }
// 
//   private static Directory MmapDirectory(File file) {
//     // TODO Auto-generated method stub
//     return null;
//   }
// 
//   public static BufferedReader getCommandLineReader() throws UnsupportedEncodingException {
//     BufferedReader br = new BufferedReader(new InputStreamReader(System.in, "utf-8"));
//     return br;
//   }
// 
// }
// 
// Path: geo-locator/src/edu/cmu/geolocator/model/Country.java
// public class Country extends CandidateAndFeature implements Comparable<CandidateAndFeature>{
// 
//   
//   public Country(){
//     super();
//   }
//   public String getAbbr() {
//     return abbr;
//   }
//   public Country setAbbr(String abbr) {
//     this.abbr = abbr;
//     return this;
//   }
//   public String getLang() {
//     return lang;
//   }
//   public Country setLang(String lang) {
//     this.lang = lang;
//     return this;
//   }
//   public String getRace() {
//     return race;
//   }
//   public Country setRace(String race) {
//     this.race = race;
//     return this;
//   }
// 
//   String abbr,lang,race;
//   @Override
//   public int compareTo(CandidateAndFeature arg0) {
//     // TODO Auto-generated method stub
//     return arg0.getId().compareTo(this.getId());
//   }
//     
//   }
// 
// Path: geo-locator/src/edu/cmu/geolocator/resource/ResourceFactory.java
// public class ResourceFactory {
// 
//   private static CollaborativeIndex collaborativeIndex = CollaborativeIndex.getInstance();
// 
//   private static AdmCode2GazCandidateMap adminCode2GazCandidateMap = AdmCode2GazCandidateMap
//           .getInstance();
// 
//   private static CCodeAdj2CTRYtype countryCode2CountryMap = CCodeAdj2CTRYtype
//           .getInstance();
// 
//   private static FeatureCode2Map featurecode2map = FeatureCode2Map.getInstance();
//   /**
//    * @return the collaborativeIndex
//    */
//   public static CollaborativeIndex getClbIndex() {
//     return collaborativeIndex;
//   }
// 
//   /**
//    * return the GazEntryAndInfo type given the admin code.
//    * @return the adminCode2GazCandidateMap
//    */
//   public static AdmCode2GazCandidateMap getAdminCode2GazCandidateMap() {
//     return adminCode2GazCandidateMap;
//   }
// 
//   /**
//    * return the Country type given the country code.
//    * @return the countryCode2CountryMap
//    * 
//    */
//   public static CCodeAdj2CTRYtype getCountryCode2CountryMap() {
//     return countryCode2CountryMap;
//   }
// 
//   public static FeatureCode2Map getFeatureCode2Map() {
//     // TODO Auto-generated method stub
//     return featurecode2map;
//   }
// }


import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import org.apache.lucene.document.Document;
import edu.cmu.geolocator.io.GetReader;
import edu.cmu.geolocator.model.Country;
import edu.cmu.geolocator.resource.ResourceFactory;
package edu.cmu.geolocator.resource.Map;




public class CCodeAdj2CTRYtype extends Map {

  public static final String name = "res/geonames/countrymapping.txt";

  static CCodeAdj2CTRYtype c2cMap;

// Path: geo-locator/src/edu/cmu/geolocator/io/GetReader.java
// public class GetReader {
// 
//   public static BufferedReader getUTF8FileReader(String filename) throws FileNotFoundException,
//           UnsupportedEncodingException {
//     File file = new File(filename);
//     BufferedReader bin = new BufferedReader(new InputStreamReader(new FileInputStream(file),
//             "utf-8"));
//     return bin;
//   }
// 
//   public static IndexSearcher getIndexSearcherFromWriter(String filename) throws IOException {
//     IndexWriter iw = GetWriter.getIndexWriter(filename, 1024);
//     IndexReader ir = IndexReader.open(iw, false);
//     IndexSearcher searcher = new IndexSearcher(ir);
//     return searcher;
//   }
// 
//   public static IndexSearcher getIndexSearcher(String filename, String diskOrMem) throws Exception {
//     IndexReader reader;
//     Directory d ;
//     if (diskOrMem.equals("disk"))
//       d = FSDirectory.open(new File(filename));
//     else if (diskOrMem.equals("mmap"))
//       d=  MmapDirectory(new File(filename));
//     else
//       throw new Exception("parameter for directory type not defined.");
//     
//     if(OSUtil.isWindows())
//      reader = IndexReader.open(FSDirectory.open(new File(filename)));
//     else
//       reader = IndexReader.open(NIOFSDirectory.open(new File(filename))); 
//     IndexSearcher searcher = new IndexSearcher(reader);
//     return searcher;
//   }
// 
//   private static Directory MmapDirectory(File file) {
//     // TODO Auto-generated method stub
//     return null;
//   }
// 
//   public static BufferedReader getCommandLineReader() throws UnsupportedEncodingException {
//     BufferedReader br = new BufferedReader(new InputStreamReader(System.in, "utf-8"));
//     return br;
//   }
// 
// }
// 
// Path: geo-locator/src/edu/cmu/geolocator/model/Country.java
// public class Country extends CandidateAndFeature implements Comparable<CandidateAndFeature>{
// 
//   
//   public Country(){
//     super();
//   }
//   public String getAbbr() {
//     return abbr;
//   }
//   public Country setAbbr(String abbr) {
//     this.abbr = abbr;
//     return this;
//   }
//   public String getLang() {
//     return lang;
//   }
//   public Country setLang(String lang) {
//     this.lang = lang;
//     return this;
//   }
//   public String getRace() {
//     return race;
//   }
//   public Country setRace(String race) {
//     this.race = race;
//     return this;
//   }
// 
//   String abbr,lang,race;
//   @Override
//   public int compareTo(CandidateAndFeature arg0) {
//     // TODO Auto-generated method stub
//     return arg0.getId().compareTo(this.getId());
//   }
//     
//   }
// 
// Path: geo-locator/src/edu/cmu/geolocator/resource/ResourceFactory.java
// public class ResourceFactory {
// 
//   private static CollaborativeIndex collaborativeIndex = CollaborativeIndex.getInstance();
// 
//   private static AdmCode2GazCandidateMap adminCode2GazCandidateMap = AdmCode2GazCandidateMap
//           .getInstance();
// 
//   private static CCodeAdj2CTRYtype countryCode2CountryMap = CCodeAdj2CTRYtype
//           .getInstance();
// 
//   private static FeatureCode2Map featurecode2map = FeatureCode2Map.getInstance();
//   /**
//    * @return the collaborativeIndex
//    */
//   public static CollaborativeIndex getClbIndex() {
//     return collaborativeIndex;
//   }
// 
//   /**
//    * return the GazEntryAndInfo type given the admin code.
//    * @return the adminCode2GazCandidateMap
//    */
//   public static AdmCode2GazCandidateMap getAdminCode2GazCandidateMap() {
//     return adminCode2GazCandidateMap;
//   }
// 
//   /**
//    * return the Country type given the country code.
//    * @return the countryCode2CountryMap
//    * 
//    */
//   public static CCodeAdj2CTRYtype getCountryCode2CountryMap() {
//     return countryCode2CountryMap;
//   }
// 
//   public static FeatureCode2Map getFeatureCode2Map() {
//     // TODO Auto-generated method stub
//     return featurecode2map;
//   }
// }


// Path: geo-locator/src/edu/cmu/geolocator/resource/Map/CCodeAdj2CTRYtype.java
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import org.apache.lucene.document.Document;
import edu.cmu.geolocator.io.GetReader;
import edu.cmu.geolocator.model.Country;
import edu.cmu.geolocator.resource.ResourceFactory;

package edu.cmu.geolocator.resource.Map;




public class CCodeAdj2CTRYtype extends Map {

  public static final String name = "res/geonames/countrymapping.txt";

  static CCodeAdj2CTRYtype c2cMap;

  HashMap<String, Country> theMap;