diff --git a/binding/java/ReadMe.md b/binding/java/ReadMe.md
index af3c0f5..f6e06f7 100644
--- a/binding/java/ReadMe.md
+++ b/binding/java/ReadMe.md
@@ -7,7 +7,7 @@
org.lionsoul
ip2region
- 2.6.3
+ 2.6.4
```
@@ -34,7 +34,7 @@ public class SearcherTest {
try {
String ip = "1.2.3.4";
long sTime = System.nanoTime();
- String region = searcher.searchByStr(ip);
+ String region = searcher.search(ip);
long cost = TimeUnit.NANOSECONDS.toMicros((long) (System.nanoTime() - sTime));
System.out.printf("{region: %s, ioCount: %d, took: %d μs}\n", region, searcher.getIOCount(), cost);
} catch (Exception e) {
@@ -80,7 +80,7 @@ public class SearcherTest {
try {
String ip = "1.2.3.4";
long sTime = System.nanoTime();
- String region = searcher.searchByStr(ip);
+ String region = searcher.search(ip);
long cost = TimeUnit.NANOSECONDS.toMicros((long) (System.nanoTime() - sTime));
System.out.printf("{region: %s, ioCount: %d, took: %d μs}\n", region, searcher.getIOCount(), cost);
} catch (Exception e) {
@@ -126,7 +126,7 @@ public class SearcherTest {
try {
String ip = "1.2.3.4";
long sTime = System.nanoTime();
- String region = searcher.searchByStr(ip);
+ String region = searcher.search(ip);
long cost = TimeUnit.NANOSECONDS.toMicros((long) (System.nanoTime() - sTime));
System.out.printf("{region: %s, ioCount: %d, took: %d μs}\n", region, searcher.getIOCount(), cost);
} catch (Exception e) {
diff --git a/binding/java/pom.xml b/binding/java/pom.xml
index 5df4def..5b2ad96 100644
--- a/binding/java/pom.xml
+++ b/binding/java/pom.xml
@@ -4,7 +4,7 @@
org.lionsoul
ip2region
- 2.6.3
+ 2.6.4
jar
ip2region