Build 1.0_r1(from source)

android.net
Class Uri.PathPart

java.lang.Object
  extended by android.net.Uri.AbstractPart
      extended by android.net.Uri.PathPart
Enclosing class:
Uri

static class Uri.PathPart
extends Uri.AbstractPart

Immutable wrapper of encoded and decoded versions of a path part. Lazily creates the encoded or decoded version from the other.


Nested Class Summary
 
Nested classes/interfaces inherited from class android.net.Uri.AbstractPart
Uri.AbstractPart.Representation
 
Field Summary
(package private) static Uri.PathPart EMPTY
          A part with empty strings for values.
(package private) static Uri.PathPart NULL
          A part with null values.
 
Fields inherited from class android.net.Uri.AbstractPart
decoded, encoded
 
Method Summary
(package private) static Uri.PathPart appendDecodedSegment(Uri.PathPart oldPart, String decoded)
           
(package private) static Uri.PathPart appendEncodedSegment(Uri.PathPart oldPart, String newSegment)
           
(package private) static Uri.PathPart from(String encoded, String decoded)
          Creates a path from the encoded and decoded strings.
(package private) static Uri.PathPart fromDecoded(String decoded)
          Creates a path from the decoded string.
(package private) static Uri.PathPart fromEncoded(String encoded)
          Creates a path from the encoded string.
(package private)  String getEncoded()
           
(package private)  Uri.PathSegments getPathSegments()
          Gets the individual path segments.
(package private) static Uri.PathPart makeAbsolute(Uri.PathPart oldPart)
          Prepends path values with "/" if they're present, not empty, and they don't already start with "/".
(package private) static Uri.PathPart readFrom(Parcel parcel)
           
 
Methods inherited from class android.net.Uri.AbstractPart
getDecoded, writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL

static final Uri.PathPart NULL
A part with null values.


EMPTY

static final Uri.PathPart EMPTY
A part with empty strings for values.

Method Detail

getEncoded

String getEncoded()
Specified by:
getEncoded in class Uri.AbstractPart

getPathSegments

Uri.PathSegments getPathSegments()
Gets the individual path segments. Parses them if necessary.

Returns:
parsed path segments or null if this isn't a hierarchical URI

appendEncodedSegment

static Uri.PathPart appendEncodedSegment(Uri.PathPart oldPart,
                                         String newSegment)

appendDecodedSegment

static Uri.PathPart appendDecodedSegment(Uri.PathPart oldPart,
                                         String decoded)

readFrom

static Uri.PathPart readFrom(Parcel parcel)

fromEncoded

static Uri.PathPart fromEncoded(String encoded)
Creates a path from the encoded string.

Parameters:
encoded - part string

fromDecoded

static Uri.PathPart fromDecoded(String decoded)
Creates a path from the decoded string.

Parameters:
decoded - part string

from

static Uri.PathPart from(String encoded,
                         String decoded)
Creates a path from the encoded and decoded strings.

Parameters:
encoded - part string
decoded - part string

makeAbsolute

static Uri.PathPart makeAbsolute(Uri.PathPart oldPart)
Prepends path values with "/" if they're present, not empty, and they don't already start with "/".


Build 1.0_r1(from source)

Please submit a feedback, bug or feature