public class AndroidUsingExec extends AbstractDnsServerLookupMechanism
| Modifier and Type | Field and Description |
|---|---|
static DnsServerLookupMechanism |
INSTANCE |
static int |
PRIORITY |
LOGGER| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getDnsServerAddresses()
Returns a List of String representing ideally IP addresses.
|
boolean |
isAvailable() |
protected static java.util.Set<java.lang.String> |
parseProps(java.io.BufferedReader lnr,
boolean logWarning) |
compareTo, getName, getPriority, toListOfStringspublic static final DnsServerLookupMechanism INSTANCE
public static final int PRIORITY
public java.util.List<java.lang.String> getDnsServerAddresses()
DnsServerLookupMechanism
Note that the lookup mechanisms are not required to assure that only IP addresses are returned. This verification is performed in
when using DnsClient.findDNS().
getDnsServerAddresses in interface DnsServerLookupMechanismgetDnsServerAddresses in class AbstractDnsServerLookupMechanismpublic boolean isAvailable()
protected static java.util.Set<java.lang.String> parseProps(java.io.BufferedReader lnr,
boolean logWarning)
throws java.net.UnknownHostException,
java.io.IOException
java.net.UnknownHostExceptionjava.io.IOException