@Deprecated public class Classpath extends Object
Constructor and Description |
---|
Classpath()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
getBytes(String resourcePath)
Deprecated.
Returns a byte array with the data from a classpath resource.
|
static File |
getFile(String resourcePath)
Deprecated.
Loads a resource from the classpath into a temporary file and returns that file.
|
static URL |
getResource(String resourcePath)
Deprecated.
|
static InputStream |
getResourceAsStream(String resourcePath)
Deprecated.
|
static boolean |
resourceExists(String path)
Deprecated.
|
public static File getFile(String resourcePath)
RuntimeException
- if an error occurred copying the classpath resource to a temporary locationpublic static byte[] getBytes(String resourcePath)
RuntimeException
- if an error occurred loading the classpath resourcepublic static InputStream getResourceAsStream(String resourcePath)
public static boolean resourceExists(String path)
Copyright © 2003–2017 Atlassian. All rights reserved.