public class Utility extends Object
Constructor and Description |
---|
Utility() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canRead(String url) |
static boolean |
canRead(URL url) |
static URL |
getParent(URL url) |
static boolean |
isDir(String url) |
static boolean |
isDir(URL url) |
static InputStream |
openConnection(URLConnection conn)
Method that opens a connection.
|
static String |
removeLastSlash(String url) |
static boolean |
supportXincludes()
Convenience method for disabling xinclude support throughout
the core library.
|
static List<URL> |
toURL(List<String> targets) |
static URL |
toURL(String target) |
public static InputStream openConnection(URLConnection conn) throws IOException
conn
- URL ConnectionIOException
- If an error occurred while opening
the stream.public static List<URL> toURL(List<String> targets) throws MalformedURLException
MalformedURLException
public static URL toURL(String target) throws MalformedURLException
MalformedURLException
public static boolean isDir(String url)
public static boolean isDir(URL url)
public static boolean canRead(URL url)
public static boolean canRead(String url)
public static boolean supportXincludes()
Copyright © 2010–2017 Planetary Data System. All rights reserved.