Debian Codegraph @

webview/platforms/android/jclass/net.py

raw
1 __all__ = ('Uri',)
2
3 from jnius import JavaClass, JavaMethod, JavaStaticMethod, MetaJavaClass
4
5
6 class Uri(JavaClass, metaclass=MetaJavaClass):
7 """
8 Represents a URI reference as defined in RFC 2396, composed of components such as
9 scheme, authority, path, query, and fragment.
10
11 The Uri class provides methods to work with uniform resource identifiers (URI). It
12 facilitates parsing, retrieving specific parts of the URI, and performing a variety
13 of URI-related manipulations. Typically used in Android development for handling
14 URI-based resources.
15
16 Attributes:
17 __javaclass__ : str
18 Specifies the associated Java class for this Python wrapper.
19 parse : JavaMethod
20 Represents the Java method 'parse' to convert a string to a Uri instance.
21 getLastPathSegment : JavaMethod
22 Represents the Java method 'getLastPathSegment' to retrieve the last
23 segment of the URI's path.
24 """
25
26 __javaclass__ = 'android/net/Uri'
27 parse = JavaStaticMethod('(Ljava/lang/String;)Landroid/net/Uri;')
28 getLastPathSegment = JavaMethod('()Ljava/lang/String;')