HostsFileEntriesProvider when mappings with all entries per hostname are needed.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static HostsFileEntries | |
| public static HostsFileEntries | Returns: aHostsFileEntriesParse hosts file at standard OS location using the system default |
| public static HostsFileEntries | Returns: aHostsFileEntriesthe file to be parsed file)Parse a hosts file using the system default |
| public static HostsFileEntries | Returns: aHostsFileEntriesthe file to be parsed file, Charset... the charsets)Charsets to try as file encodings when parsing.Parse a hosts file. |
| public static HostsFileEntries | Returns: aHostsFileEntriesthe file to be parsed reader)Parse a reader of hosts file format. |
| public static HostsFileEntries | Returns: aHostsFileEntriesParse hosts file at standard OS location using the systems default |
| public static HostsFileEntries | Returns: aHostsFileEntriesthe charsets)Charsets to try as file encodings when parsing.Parse hosts file at standard OS location using the given |
| private static Map |
| HostsFileParser | back to summary |
|---|---|
| private HostsFileParser() Can't be instantiated. | |
| hostsFileEntries | back to summary |
|---|---|
private static HostsFileEntries hostsFileEntries(HostsFileEntriesProvider provider)
| |
| parse | back to summary |
|---|---|
| public static HostsFileEntries parse() throws IOException Parse hosts file at standard OS location using the system default
| |
| parse | back to summary |
|---|---|
| public static HostsFileEntries parse(File file) throws IOException Parse a hosts file using the system default
| |
| parse | back to summary |
|---|---|
| public static HostsFileEntries parse(File file, Charset... charsets) throws IOException Parse a hosts file.
| |
| parse | back to summary |
|---|---|
| public static HostsFileEntries parse(Reader reader) throws IOException Parse a reader of hosts file format.
| |
| parseSilently | back to summary |
|---|---|
| public static HostsFileEntries parseSilently() Parse hosts file at standard OS location using the systems default
| |
| parseSilently | back to summary |
|---|---|
| public static HostsFileEntries parseSilently(Charset... charsets) Parse hosts file at standard OS location using the given
| |
| toMapWithSingleValue | back to summary |
|---|---|
| private static Map | |