Package gov.nasa.worldwind.util
Class WWUtil
- java.lang.Object
-
- gov.nasa.worldwind.util.WWUtil
-
public class WWUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description WWUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
closeSilently(java.io.Closeable closeable)
Closes a specified Closeable, suppressing any checked exceptions.static boolean
isUrlString(java.lang.String string)
Determines whether or not the specified string represents a URL.static java.lang.String
readResourceAsText(android.content.res.Resources resources, int id)
-
-
-
Method Detail
-
closeSilently
public static void closeSilently(java.io.Closeable closeable)
Closes a specified Closeable, suppressing any checked exceptions. This has no effect if the closeable is null.- Parameters:
closeable
- the object to close, may be null in which case this does nothing
-
isUrlString
public static boolean isUrlString(java.lang.String string)
Determines whether or not the specified string represents a URL. This returns false if the string is null.- Parameters:
string
- the string in question- Returns:
- true if the string represents a URL, otherwise false
-
readResourceAsText
public static java.lang.String readResourceAsText(android.content.res.Resources resources, @RawRes int id) throws java.io.IOException
- Throws:
java.io.IOException
-
-