public class HostsImpl extends AbstractHosts
| Constructor and Description |
|---|
HostsImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exist(String host)
判断域名是否存在.
|
List<Host> |
list()
获取所有hosts文件配置的记录.
|
String |
query(String host)
根据域名获取IP.
|
getHostsPath, parseLine, readHostsFileCopyright © 2014–2018. All rights reserved.