Build 1.0_r1(from source)

android.net
Class WebAddress

java.lang.Object
  extended by 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


Field Summary
(package private) static int MATCH_GROUP_AUTHORITY
           
(package private) static int MATCH_GROUP_HOST
           
(package private) static int MATCH_GROUP_PATH
           
(package private) static int MATCH_GROUP_PORT
           
(package private) static int MATCH_GROUP_SCHEME
           
 String mAuthInfo
           
 String mHost
           
 String mPath
           
 int mPort
           
 String mScheme
           
(package private) static Pattern sAddressPattern
           
 
Constructor Summary
WebAddress(String address)
          parses given uriString.
 
Method Summary
 String toString()
          Returns a string containing a concise, human-readable description of the receiver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

WebAddress

public WebAddress(String address)
           throws ParseException
parses given uriString.

Throws:
ParseException
Method Detail

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.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature