程序包 | 说明 |
---|---|
io.netty.resolver |
Resolves an arbitrary string that represents the name of an endpoint into an address.
|
限定符和类型 | 方法和说明 |
---|---|
static HostsFileEntries |
HostsFileParser.parse()
Parse hosts file at standard OS location using the system default
Charset for decoding. |
static HostsFileEntries |
HostsFileParser.parse(java.io.File file)
Parse a hosts file using the system default
Charset for decoding. |
static HostsFileEntries |
HostsFileParser.parse(java.io.File file,
java.nio.charset.Charset... charsets)
Parse a hosts file.
|
static HostsFileEntries |
HostsFileParser.parse(java.io.Reader reader)
Parse a reader of hosts file format.
|
static HostsFileEntries |
HostsFileParser.parseSilently()
Parse hosts file at standard OS location using the systems default
Charset for decoding. |
static HostsFileEntries |
HostsFileParser.parseSilently(java.nio.charset.Charset... charsets)
Parse hosts file at standard OS location using the given
Charset s one after each other until
we were able to parse something or none is left. |