public static interface HostsFileEntriesProvider.Parser
| Modifier and Type | Method and Description |
|---|---|
HostsFileEntriesProvider |
parse()
Parses the hosts file at standard OS location using the system default
Charset for decoding. |
HostsFileEntriesProvider |
parse(Charset... charsets)
Parses the hosts file at standard OS location using the given
Charsets one after another until
parse something or none is left. |
HostsFileEntriesProvider |
parse(File file,
Charset... charsets)
Parses the provided hosts file using the given
Charsets one after another until
parse something or none is left. |
HostsFileEntriesProvider |
parse(Reader reader)
Performs the parsing operation using the provided reader of hosts file format.
|
HostsFileEntriesProvider |
parseSilently()
Parses the hosts file at standard OS location using the system default
Charset for decoding. |
HostsFileEntriesProvider |
parseSilently(Charset... charsets)
Parses the hosts file at standard OS location using the given
Charsets one after another until
parse something or none is left. |
HostsFileEntriesProvider |
parseSilently(File file,
Charset... charsets)
Parses the provided hosts file using the given
Charsets one after another until
parse something or none is left. |
HostsFileEntriesProvider parse() throws IOException
Charset for decoding.HostsFileEntriesProviderIOException - file could not be readHostsFileEntriesProvider parse(Charset... charsets) throws IOException
Charsets one after another until
parse something or none is left.charsets - the Charsets to try as file encodings when parsingHostsFileEntriesProviderIOException - file could not be readHostsFileEntriesProvider parse(File file, Charset... charsets) throws IOException
Charsets one after another until
parse something or none is left. In case Charsets are not provided,
the system default Charset is used for decoding.file - the file to be parsedcharsets - the Charsets to try as file encodings when parsing, in case Charsets
are not provided, the system default Charset is used for decodingHostsFileEntriesProviderIOException - file could not be readHostsFileEntriesProvider parse(Reader reader) throws IOException
reader - the reader of hosts file formatHostsFileEntriesProviderIOExceptionHostsFileEntriesProvider parseSilently()
Charset for decoding.HostsFileEntriesProviderHostsFileEntriesProvider parseSilently(Charset... charsets)
Charsets one after another until
parse something or none is left.charsets - the Charsets to try as file encodings when parsingHostsFileEntriesProviderHostsFileEntriesProvider parseSilently(File file, Charset... charsets)
Charsets one after another until
parse something or none is left. In case Charsets are not provided,
the system default Charset is used for decoding.file - the file to be parsedcharsets - the Charsets to try as file encodings when parsing, in case Charsets
are not provided, the system default Charset is used for decodingHostsFileEntriesProviderCopyright © 2008–2025 The Netty Project. All rights reserved.