android.net
Class WebAddress
java.lang.Object
android.net.WebAddress
public class WebAddress
- extends Object
Web Address Parser
This is called WebAddress, rather than URL or URI, because it
attempts to parse the stuff that a user will actually type into a
browser address widget.
Unlike java.net.uri, this parser will not choke on URIs missing
schemes. It will only throw a ParseException if the input is
really hosed.
If given an https scheme but no port, fills in port
|
Method Summary |
String |
toString()
Returns a string containing a concise, human-readable description of the
receiver. |
mScheme
public String mScheme
mHost
public String mHost
mPort
public int mPort
mPath
public String mPath
mAuthInfo
public String mAuthInfo
MATCH_GROUP_SCHEME
static final int MATCH_GROUP_SCHEME
- See Also:
- Constant Field Values
MATCH_GROUP_AUTHORITY
static final int MATCH_GROUP_AUTHORITY
- See Also:
- Constant Field Values
MATCH_GROUP_HOST
static final int MATCH_GROUP_HOST
- See Also:
- Constant Field Values
MATCH_GROUP_PORT
static final int MATCH_GROUP_PORT
- See Also:
- Constant Field Values
MATCH_GROUP_PATH
static final int MATCH_GROUP_PATH
- See Also:
- Constant Field Values
sAddressPattern
static Pattern sAddressPattern
WebAddress
public WebAddress(String address)
throws ParseException
- parses given uriString.
- Throws:
ParseException
toString
public String toString()
- Description copied from class:
Object
- Returns a string containing a concise, human-readable description of the
receiver.
- Overrides:
toString in class Object
- Returns:
- String a printable representation for the receiver.
Please submit a feedback, bug or feature