Added: Add UriScheme and move UriUtils to com.termux.shared.net package

This commit is contained in:
agnostic-apollo
2021-10-26 00:46:54 +05:00
parent 37b9bcf5af
commit 549a772d45
5 changed files with 54 additions and 25 deletions

View File

@@ -0,0 +1,28 @@
package com.termux.shared.models.net;
import android.net.Uri;
/**
* The {@link Uri} schemes.
*
* https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml
* https://en.wikipedia.org/wiki/List_of_URI_schemes
*/
public class UriScheme {
/** Android app resource. */
public static final String SCHEME_ANDROID_RESOURCE = "android.resource";
/** Android content provider. https://www.iana.org/assignments/uri-schemes/prov/content. */
public static final String SCHEME_CONTENT = "content";
/** Filesystem or android app asset. https://www.rfc-editor.org/rfc/rfc8089.html. */
public static final String SCHEME_FILE = "file";
/* Hypertext Transfer Protocol. */
public static final String SCHEME_HTTP = "http";
/* Hypertext Transfer Protocol Secure. */
public static final String SCHEME_HTTPS = "https";
}