@UnstableApi public final class HostsFileParser extends Object
| Modifier and Type | Method and Description |
|---|---|
static HostsFileEntries |
parse()
Parse hosts file at standard OS location.
|
static HostsFileEntries |
parse(File file)
Parse a hosts file.
|
static HostsFileEntries |
parse(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 IOException
HostsFileEntriesIOException - file could not be readpublic static HostsFileEntries parse(File file) throws IOException
file - the file to be parsedHostsFileEntriesIOException - file could not be readpublic static HostsFileEntries parse(Reader reader) throws IOException
reader - the file to be parsedHostsFileEntriesIOException - file could not be readCopyright © 2008–2017 The Netty Project. All rights reserved.