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.Resource
public void release()
release
in class org.openqa.jetty.util.Resource
public boolean exists()
exists
in class org.openqa.jetty.util.Resource
public boolean isDirectory()
isDirectory
in class org.openqa.jetty.util.Resource
public long lastModified()
lastModified
in class org.openqa.jetty.util.Resource
public long length()
length
in class org.openqa.jetty.util.Resource
public URL getURL()
getURL
in class org.openqa.jetty.util.Resource
public File getFile() throws IOException
getFile
in class org.openqa.jetty.util.Resource
IOException
public String getName()
getName
in class org.openqa.jetty.util.Resource
public InputStream getInputStream() throws IOException
getInputStream
in class org.openqa.jetty.util.Resource
IOException
public OutputStream getOutputStream() throws IOException, SecurityException
getOutputStream
in class org.openqa.jetty.util.Resource
IOException
SecurityException
public boolean delete() throws SecurityException
delete
in class org.openqa.jetty.util.Resource
SecurityException
public boolean renameTo(org.openqa.jetty.util.Resource dest) throws SecurityException
renameTo
in class org.openqa.jetty.util.Resource
SecurityException
public String[] list()
list
in class org.openqa.jetty.util.Resource
public org.openqa.jetty.util.Resource addPath(String pathParm) throws IOException, MalformedURLException
addPath
in class org.openqa.jetty.util.Resource
IOException
MalformedURLException
Copyright © 2015. All rights reserved.