### Question:
TbIPLocator extends BaseIpLocator { @Override public void prepare() throws TPluginInitException { prepareLang(); try { byte[] ipData = dataFile.fetch(); this.impl = this.load(ipData); this.dataFile.watch((b) -> { TbipImpl impl = this.load(b); _lock.lock(); this.impl = impl; _lock.unlock(); this.impl = impl; }); } catch (Exception e) { throw new TPluginInitException("geo data init failed", e); } }  @Override void prepare();  }### Answer:
@Test public void test() throws Exception { TbIPLocator locator = new TbIPLocator(); locator.dataFile = TResource.valueof("/Users/zhanglei/Work/Projects/ware/tauris4/tauris-plugins-filter/iploc/tmp/tbip/ipdata_geo_isp_code.txt.utf8"); locator.prepare(); System.out.println(locator.locate("180.97.33.107")); }