| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final HostsFileEntriesProvider | |
| private final Map | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| pack-priv | HostsFileEntriesProvider(Map<String, List<InetAddress>> ipv4Entries, Map<String, List<InetAddress>> ipv6Entries)
|
| Modifier and Type | Method and Description |
|---|---|
| public Map | |
| public Map | |
| public static HostsFileEntriesProvider. | Returns: a newHostsFileEntriesProvider.Creates a parser for |
| EMPTY | back to summary |
|---|---|
| pack-priv static final HostsFileEntriesProvider EMPTY | |
| ipv4Entries | back to summary |
|---|---|
| private final Map<String, List<InetAddress>> ipv4Entries | |
| ipv6Entries | back to summary |
|---|---|
| private final Map<String, List<InetAddress>> ipv6Entries | |
| HostsFileEntriesProvider | back to summary |
|---|---|
| pack-priv HostsFileEntriesProvider(Map<String, List<InetAddress>> ipv4Entries, Map<String, List<InetAddress>> ipv6Entries) | |
| ipv4Entries | back to summary |
|---|---|
| public Map The IPv4 entries.
| |
| ipv6Entries | back to summary |
|---|---|
| public Map The IPv6 entries.
| |
| parser | back to summary |
|---|---|
| public static HostsFileEntriesProvider. Creates a parser for | |
| Modifier and Type | Method and Description |
|---|---|
| public HostsFileEntriesProvider | Returns: a newHostsFileEntriesProviderParses the hosts file at standard OS location using the system default |
| public HostsFileEntriesProvider | Returns: a newHostsFileEntriesProviderthe charsets)Charsets to try as file encodings when parsingParses the hosts file at standard OS location using the given |
| public HostsFileEntriesProvider | Returns: a newHostsFileEntriesProviderthe file to be parsed file, Charset... charsets)Parses the provided hosts file using the given |
| public HostsFileEntriesProvider | Returns: a newHostsFileEntriesProviderthe reader of hosts file format reader)Performs the parsing operation using the provided reader of hosts file format. |
| public HostsFileEntriesProvider | Returns: a newHostsFileEntriesProviderParses the hosts file at standard OS location using the system default |
| public HostsFileEntriesProvider | Returns: a newHostsFileEntriesProviderthe charsets)Charsets to try as file encodings when parsingParses the hosts file at standard OS location using the given |
| public HostsFileEntriesProvider | Returns: a newHostsFileEntriesProviderthe file to be parsed file, Charset... charsets)Parses the provided hosts file using the given |
| parse | back to summary |
|---|---|
| public HostsFileEntriesProvider parse() throws IOException Parses the hosts file at standard OS location using the system default
| |
| parse | back to summary |
|---|---|
| public HostsFileEntriesProvider parse(Charset... charsets) throws IOException Parses the hosts file at standard OS location using the given
| |
| parse | back to summary |
|---|---|
| public HostsFileEntriesProvider parse(File file, Charset... charsets) throws IOException Parses the provided hosts file using the given
| |
| parse | back to summary |
|---|---|
| public HostsFileEntriesProvider parse(Reader reader) throws IOException Performs the parsing operation using the provided reader of hosts file format.
| |
| parseSilently | back to summary |
|---|---|
| public HostsFileEntriesProvider parseSilently() Parses the hosts file at standard OS location using the system default
| |
| parseSilently | back to summary |
|---|---|
| public HostsFileEntriesProvider parseSilently(Charset... charsets) Parses the hosts file at standard OS location using the given
| |
| parseSilently | back to summary |
|---|---|
| public HostsFileEntriesProvider parseSilently(File file, Charset... charsets) Parses the provided hosts file using the given
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final HostsFileEntriesProvider. | |
| private static final InternalLogger | |
| private static final Pattern | |
| private static final String | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static File | |
| public HostsFileEntriesProvider | parse()
Implements io. Charset for decoding.
|
| public HostsFileEntriesProvider | parse(Charset...
the charsets)Charsets to try as file encodings when parsingImplements io. Charsets one after another until
parse something or none is left.
|
| public HostsFileEntriesProvider | parse(File
the file to be parsed file, Charset... charsets)Implements io. Charsets one after another until
parse something or none is left.
|
| public HostsFileEntriesProvider | parse(Reader
the reader of hosts file format reader)Implements io. |
| public HostsFileEntriesProvider | parseSilently()
Implements io. Charset for decoding.
|
| public HostsFileEntriesProvider | parseSilently(Charset...
the charsets)Charsets to try as file encodings when parsingImplements io. Charsets one after another until
parse something or none is left.
|
| public HostsFileEntriesProvider | parseSilently(File
the file to be parsed file, Charset... charsets)Implements io. Charsets one after another until
parse something or none is left.
|
| INSTANCE | back to summary |
|---|---|
| pack-priv static final HostsFileEntriesProvider. | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| WHITESPACES | back to summary |
|---|---|
| private static final Pattern WHITESPACES | |
| WINDOWS_DEFAULT_SYSTEM_ROOT | back to summary |
|---|---|
| private static final String WINDOWS_DEFAULT_SYSTEM_ROOT | |
| WINDOWS_HOSTS_FILE_RELATIVE_PATH | back to summary |
|---|---|
| private static final String WINDOWS_HOSTS_FILE_RELATIVE_PATH | |
| X_PLATFORMS_HOSTS_FILE_PATH | back to summary |
|---|---|
| private static final String X_PLATFORMS_HOSTS_FILE_PATH | |
| ParserImpl | back to summary |
|---|---|
| private ParserImpl() | |
| locateHostsFile | back to summary |
|---|---|
| private static File locateHostsFile() | |
| parse | back to summary |
|---|---|
| public HostsFileEntriesProvider parse() throws IOException Implements io. Doc from io. Parses the hosts file at standard OS location using the system default
| |
| parse | back to summary |
|---|---|
| public HostsFileEntriesProvider parse(Charset... charsets) throws IOException Implements io. Doc from io. Parses the hosts file at standard OS location using the given
| |
| parse | back to summary |
|---|---|
| public HostsFileEntriesProvider parse(File file, Charset... charsets) throws IOException Implements io. Doc from io. Parses the provided hosts file using the given
| |
| parse | back to summary |
|---|---|
| public HostsFileEntriesProvider parse(Reader reader) throws IOException Implements io. Doc from io. Performs the parsing operation using the provided reader of hosts file format.
| |
| parseSilently | back to summary |
|---|---|
| public HostsFileEntriesProvider parseSilently() Implements io. Doc from io. Parses the hosts file at standard OS location using the system default
| |
| parseSilently | back to summary |
|---|---|
| public HostsFileEntriesProvider parseSilently(Charset... charsets) Implements io. Doc from io. Parses the hosts file at standard OS location using the given
| |
| parseSilently | back to summary |
|---|---|
| public HostsFileEntriesProvider parseSilently(File file, Charset... charsets) Implements io. Doc from io. Parses the provided hosts file using the given
| |