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
Charset s one after another until
parse something or none is left. |
HostsFileEntriesProvider |
parse(File file,
Charset... charsets)
Parses the provided hosts file using the given
Charset s 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
Charset s one after another until
parse something or none is left. |
HostsFileEntriesProvider |
parseSilently(File file,
Charset... charsets)
Parses the provided hosts file using the given
Charset s one after another until
parse something or none is left. |
HostsFileEntriesProvider parse() throws IOException
Charset
for decoding.HostsFileEntriesProvider
IOException
- file could not be readHostsFileEntriesProvider parse(Charset... charsets) throws IOException
Charset
s one after another until
parse something or none is left.charsets
- the Charset
s to try as file encodings when parsingHostsFileEntriesProvider
IOException
- file could not be readHostsFileEntriesProvider parse(File file, Charset... charsets) throws IOException
Charset
s one after another until
parse something or none is left. In case Charset
s are not provided,
the system default Charset
is used for decoding.file
- the file to be parsedcharsets
- the Charset
s to try as file encodings when parsing, in case Charset
s
are not provided, the system default Charset
is used for decodingHostsFileEntriesProvider
IOException
- file could not be readHostsFileEntriesProvider parse(Reader reader) throws IOException
reader
- the reader of hosts file formatHostsFileEntriesProvider
IOException
HostsFileEntriesProvider parseSilently()
Charset
for decoding.HostsFileEntriesProvider
HostsFileEntriesProvider parseSilently(Charset... charsets)
Charset
s one after another until
parse something or none is left.charsets
- the Charset
s to try as file encodings when parsingHostsFileEntriesProvider
HostsFileEntriesProvider parseSilently(File file, Charset... charsets)
Charset
s one after another until
parse something or none is left. In case Charset
s are not provided,
the system default Charset
is used for decoding.file
- the file to be parsedcharsets
- the Charset
s to try as file encodings when parsing, in case Charset
s
are not provided, the system default Charset
is used for decodingHostsFileEntriesProvider
Copyright © 2008–2024 The Netty Project. All rights reserved.