|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jetty.util.resource.Resource
org.eclipse.jetty.util.resource.URLResource
public class URLResource
Abstract resource class.
| 字段摘要 | |
|---|---|
protected URLConnection |
_connection
|
protected InputStream |
_in
|
protected URL |
_url
|
protected String |
_urlString
|
| 从类 org.eclipse.jetty.util.resource.Resource 继承的字段 |
|---|
__defaultUseCaches |
| 构造方法摘要 | |
|---|---|
protected |
URLResource(URL url,
URLConnection connection)
|
protected |
URLResource(URL url,
URLConnection connection,
boolean useCaches)
|
| 方法摘要 | |
|---|---|
Resource |
addPath(String path)
Returns the resource contained inside the current resource with the given name |
protected boolean |
checkConnection()
|
boolean |
delete()
Deletes the given resource |
boolean |
equals(Object o)
|
boolean |
exists()
Returns true if the represented resource exists. |
File |
getFile()
Returns an File representing the given resource or NULL if this is not possible. |
InputStream |
getInputStream()
Returns an input stream to the resource |
String |
getName()
Returns the name of the resource |
OutputStream |
getOutputStream()
Returns an output stream to the resource |
URL |
getURL()
Returns an URL representing the given resource |
boolean |
getUseCaches()
|
int |
hashCode()
|
boolean |
isContainedIn(Resource containingResource)
|
boolean |
isDirectory()
Returns true if the respresenetd resource is a container/directory. |
long |
lastModified()
Returns the last modified time |
long |
length()
Return the length of the resource |
String[] |
list()
Returns a list of resource names contained in the given resource |
void |
release()
Release any resources held by the resource. |
boolean |
renameTo(Resource dest)
Rename the given resource |
String |
toString()
|
| 从类 org.eclipse.jetty.util.resource.Resource 继承的方法 |
|---|
copyTo, encode, finalize, getAlias, getAssociate, getDefaultUseCaches, getListHTML, getResource, getURI, getWeakETag, isContainedIn, newClassPathResource, newClassPathResource, newResource, newResource, newResource, newResource, newResource, newSystemResource, setAssociate, setDefaultUseCaches, toURL, writeTo |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
protected URL _url
protected String _urlString
protected URLConnection _connection
protected InputStream _in
| 构造方法详细信息 |
|---|
protected URLResource(URL url,
URLConnection connection)
protected URLResource(URL url,
URLConnection connection,
boolean useCaches)
| 方法详细信息 |
|---|
protected boolean checkConnection()
public void release()
Resource 中的 releasepublic boolean exists()
Resource 中的 existspublic boolean isDirectory()
Resource 中的 isDirectorypublic long lastModified()
Resource 中的 lastModifiedpublic long length()
Resource 中的 lengthpublic URL getURL()
Resource 中的 getURL
public File getFile()
throws IOException
Resource 中的 getFileIOExceptionpublic String getName()
Resource 中的 getName
public InputStream getInputStream()
throws IOException
Resource 中的 getInputStreamIOException
public OutputStream getOutputStream()
throws IOException,
SecurityException
Resource 中的 getOutputStreamIOException
SecurityException
public boolean delete()
throws SecurityException
Resource 中的 deleteSecurityException
public boolean renameTo(Resource dest)
throws SecurityException
Resource 中的 renameToSecurityExceptionpublic String[] list()
Resource 中的 list
public Resource addPath(String path)
throws IOException,
MalformedURLException
Resource 中的 addPathpath - The path segment to add, which should be encoded by the
encode method.
IOException
MalformedURLExceptionpublic String toString()
Object 中的 toStringpublic int hashCode()
Object 中的 hashCodepublic boolean equals(Object o)
Object 中的 equalspublic boolean getUseCaches()
public boolean isContainedIn(Resource containingResource)
throws MalformedURLException
Resource 中的 isContainedInMalformedURLException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||