@UnstableApi
public final class HostsFileParser
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static HostsFileEntries |
parse()
Parse hosts file at standard OS location.
|
static HostsFileEntries |
parse(java.io.File file)
Parse a hosts file.
|
static HostsFileEntries |
parse(java.io.Reader reader)
Parse a reader of hosts file format.
|
static HostsFileEntries |
parseSilently()
Parse hosts file at standard OS location.
|
public static HostsFileEntries parseSilently()
HostsFileEntriespublic static HostsFileEntries parse() throws java.io.IOException
HostsFileEntriesjava.io.IOException - file could not be readpublic static HostsFileEntries parse(java.io.File file) throws java.io.IOException
file - the file to be parsedHostsFileEntriesjava.io.IOException - file could not be readpublic static HostsFileEntries parse(java.io.Reader reader) throws java.io.IOException
reader - the file to be parsedHostsFileEntriesjava.io.IOException - file could not be readCopyright © 2008–2018 The Netty Project. All rights reserved.