diff --git a/README.md b/README.md index 59e71a0..8fe6be3 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -java +# java ==== 17mon IP库解析代码 -##基本用法 +## 基本用法 ```java IP.enableFileWatch = true; // 默认值为:false,如果为true将会检查ip库文件的变化自动reload数据 @@ -16,9 +16,35 @@ IP.find("8.8.8.8");//返回字符串数组["GOOGLE","GOOGLE"] IPExt的用法与IP的用法相同,只是用来解析datx格式文件。 -##特别说明 +## 特别说明 ```java IP.java 类仅适用于免费版dat与收费版每周每日版本的dat文件; IPExt.java 类适用于收费版每日版本的datx文件; ``` 区县库代码请查看 https://github.com/17mon/quxianku/ + +---------------------- +(English Ver.) +# java +==== + +17mon IP Library Analyzing Code + +## General usage +```java + +IP.enableFileWatch = true; // Default value: false. If true, it will automaticallt scan for the change in ip library and reload. + +IP.load("IP library local path"); + +IP.find("8.8.8.8");//returns array of string["GOOGLE","GOOGLE"] + +``` +The implementation of IPExt is the same as IP's. It's only used to analyze datx files. + +## Note +```java +IP.java can only be found in free version dat; +IPExt.java can be found in paid version datx. +``` +District and County libraby: https://github.com/17mon/quxianku/