public class URIUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASSPATH_SCHEME |
static String |
FILE_SCHEME |
static Pattern |
WINDOWS_DRIVE_PATTERN |
| Constructor and Description |
|---|
URIUtil() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getContentAsBytes(URI uri) |
static String |
getContentAsString(URI uri) |
static String |
getContentAsString(URI uri,
Charset charset) |
static InputStream |
getInputStream(URI uri) |
static InputStream |
getInputStream(URI uri,
ClassLoader loader) |
static String |
getSchemeSpecificPart(String path) |
static String |
getSchemeSpecificPart(URI uri) |
static boolean |
isAbsolute(String path) |
static boolean |
isAbsolute(URI uri) |
static boolean |
isFileURI(String path) |
static boolean |
isFileURI(URI uri) |
static long |
lastModified(URI uri) |
static long |
lastModified(URL url) |
static String |
normalize(String uri) |
public static final String CLASSPATH_SCHEME
public static final String FILE_SCHEME
public static final Pattern WINDOWS_DRIVE_PATTERN
public static boolean isFileURI(String path) throws URISyntaxException
URISyntaxExceptionpublic static boolean isFileURI(URI uri)
public static boolean isAbsolute(String path) throws URISyntaxException
URISyntaxExceptionpublic static boolean isAbsolute(URI uri)
public static String getSchemeSpecificPart(String path) throws URISyntaxException
URISyntaxExceptionpublic static InputStream getInputStream(URI uri, ClassLoader loader) throws IOException
IOExceptionpublic static InputStream getInputStream(URI uri) throws IOException
IOExceptionpublic static String getContentAsString(URI uri) throws IOException
IOExceptionpublic static String getContentAsString(URI uri, Charset charset) throws IOException
IOExceptionpublic static byte[] getContentAsBytes(URI uri) throws IOException
IOExceptionpublic static long lastModified(URI uri) throws IOException
IOExceptionpublic static long lastModified(URL url) throws IOException
IOException