mirror of
https://github.com/apache/cordova-android.git
synced 2025-03-16 08:21:04 +08:00
Trivial spelling fix in comments when reading CordovaResourceApi
This commit is contained in:
parent
07290277ba
commit
eb623a84d5
@ -106,6 +106,7 @@ public class CordovaResourceApi {
|
|||||||
return threadCheckingEnabled;
|
return threadCheckingEnabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static int getUriType(Uri uri) {
|
public static int getUriType(Uri uri) {
|
||||||
assertNonRelative(uri);
|
assertNonRelative(uri);
|
||||||
String scheme = uri.getScheme();
|
String scheme = uri.getScheme();
|
||||||
@ -199,6 +200,8 @@ public class CordovaResourceApi {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//This already exists
|
||||||
private String getMimeTypeFromPath(String path) {
|
private String getMimeTypeFromPath(String path) {
|
||||||
String extension = path;
|
String extension = path;
|
||||||
int lastDot = extension.lastIndexOf('.');
|
int lastDot = extension.lastIndexOf('.');
|
||||||
@ -217,7 +220,7 @@ public class CordovaResourceApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Opens a stream to the givne URI, also providing the MIME type & length.
|
* Opens a stream to the given URI, also providing the MIME type & length.
|
||||||
* @return Never returns null.
|
* @return Never returns null.
|
||||||
* @throws Throws an InvalidArgumentException for relative URIs. Relative URIs should be
|
* @throws Throws an InvalidArgumentException for relative URIs. Relative URIs should be
|
||||||
* resolved before being passed into this function.
|
* resolved before being passed into this function.
|
||||||
@ -229,7 +232,7 @@ public class CordovaResourceApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Opens a stream to the givne URI, also providing the MIME type & length.
|
* Opens a stream to the given URI, also providing the MIME type & length.
|
||||||
* @return Never returns null.
|
* @return Never returns null.
|
||||||
* @throws Throws an InvalidArgumentException for relative URIs. Relative URIs should be
|
* @throws Throws an InvalidArgumentException for relative URIs. Relative URIs should be
|
||||||
* resolved before being passed into this function.
|
* resolved before being passed into this function.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user