public abstract class Host
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Host |
EMPTY
The constant representing an empty Host.
|
Constructor and Description |
---|
Host() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
address()
Returns a String representation of the address.
|
static Host |
create(java.lang.String string)
Parse the given Host string using the default charset and parsing-mode.
|
static Host |
create(java.lang.String string,
java.nio.charset.Charset charset,
Uri.ParsingMode parsingMode)
Parse the given Host string using the given charset and parsing-mode.
|
static Host |
create(java.lang.String string,
Uri.ParsingMode parsingMode)
Parse the given Host string using the given charset and the default parsing-mode.
|
abstract java.lang.Iterable<java.net.InetAddress> |
getInetAddresses()
Returns an Iterable of InetAddresses represented by this Host.
|
abstract boolean |
isEmpty() |
abstract boolean |
isIPv4() |
abstract boolean |
isIPv6() |
abstract boolean |
isNamedHost() |
public static final Host EMPTY
public abstract java.lang.String address()
public abstract boolean isEmpty()
public abstract boolean isIPv4()
public abstract boolean isIPv6()
public abstract boolean isNamedHost()
public abstract java.lang.Iterable<java.net.InetAddress> getInetAddresses()
public static Host create(java.lang.String string)
public static Host create(java.lang.String string, Uri.ParsingMode parsingMode)
public static Host create(java.lang.String string, java.nio.charset.Charset charset, Uri.ParsingMode parsingMode)