public static HostsFileEntries parseSilently(Charset... charsets) {
        File hostsFile = locateHostsFile();
        try {
            return parse(hostsFile, charsets);
        } catch (IOException e) {
            if (logger.isWarnEnabled()) {
                logger.warn("Failed to load and parse hosts file at " + hostsFile.getPath(), e);
            }
            return HostsFileEntries.EMPTY;
        }
    }
public static HostsFileEntries parseSilently ( Charset ... charsets ) { File hostsFile = locateHostsFile ( ) ; try { return parse ( hostsFile , charsets ) ; } catch ( IOException e ) { if ( logger . isWarnEnabled ( ) ) { logger . warn ( "Failed to load and parse hosts file at " + hostsFile . getPath ( ) , e ) ; } return HostsFileEntries . EMPTY ; } }
Parse hosts file at standard OS location using the given {@link Charset}s one after each other until
we were able to parse something or none is left.

@param charsets the {@link Charset}s to try as file encodings when parsing.
@return a {@link HostsFileEntries}