public class ClassPathResource
extends org.openqa.jetty.util.Resource
| Constructor and Description |
|---|
ClassPathResource(String path)
Specifies the classpath path containing the resource
|
| Modifier and Type | Method and Description |
|---|---|
org.openqa.jetty.util.Resource |
addPath(String pathParm) |
boolean |
delete() |
boolean |
exists() |
Object |
getAssociate() |
File |
getFile() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
static InputStream |
getSeleniumResourceAsStream(String resourceFile) |
URL |
getURL() |
boolean |
isDirectory() |
long |
lastModified()
Returns the lastModified time, which is always in the distant future to prevent caching.
|
long |
length() |
String[] |
list() |
void |
release() |
boolean |
renameTo(org.openqa.jetty.util.Resource dest) |
String |
toString() |
public ClassPathResource(String path)
path - resource locationpublic static InputStream getSeleniumResourceAsStream(String resourceFile)
public Object getAssociate()
getAssociate in class org.openqa.jetty.util.Resourcepublic void release()
release in class org.openqa.jetty.util.Resourcepublic boolean exists()
exists in class org.openqa.jetty.util.Resourcepublic boolean isDirectory()
isDirectory in class org.openqa.jetty.util.Resourcepublic long lastModified()
lastModified in class org.openqa.jetty.util.Resourcepublic long length()
length in class org.openqa.jetty.util.Resourcepublic URL getURL()
getURL in class org.openqa.jetty.util.Resourcepublic File getFile() throws IOException
getFile in class org.openqa.jetty.util.ResourceIOExceptionpublic String getName()
getName in class org.openqa.jetty.util.Resourcepublic InputStream getInputStream() throws IOException
getInputStream in class org.openqa.jetty.util.ResourceIOExceptionpublic OutputStream getOutputStream() throws IOException, SecurityException
getOutputStream in class org.openqa.jetty.util.ResourceIOExceptionSecurityExceptionpublic boolean delete()
throws SecurityException
delete in class org.openqa.jetty.util.ResourceSecurityExceptionpublic boolean renameTo(org.openqa.jetty.util.Resource dest)
throws SecurityException
renameTo in class org.openqa.jetty.util.ResourceSecurityExceptionpublic String[] list()
list in class org.openqa.jetty.util.Resourcepublic org.openqa.jetty.util.Resource addPath(String pathParm) throws IOException, MalformedURLException
addPath in class org.openqa.jetty.util.ResourceIOExceptionMalformedURLExceptionCopyright © 2015. All rights reserved.