@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()
HostsFileEntries
public static HostsFileEntries parse() throws IOException
HostsFileEntries
IOException
- file could not be readpublic static HostsFileEntries parse(File file) throws IOException
file
- the file to be parsedHostsFileEntries
IOException
- file could not be readpublic static HostsFileEntries parse(Reader reader) throws IOException
reader
- the file to be parsedHostsFileEntries
IOException
- file could not be readCopyright © 2008–2017 The Netty Project. All rights reserved.