org.eclipse.jetty.util.resource
类 JarResource
java.lang.Object
org.eclipse.jetty.util.resource.Resource
org.eclipse.jetty.util.resource.URLResource
org.eclipse.jetty.util.resource.JarResource
- 所有已实现的接口:
- ResourceFactory
public class JarResource
- extends URLResource
| 从类 org.eclipse.jetty.util.resource.URLResource 继承的方法 |
addPath, delete, equals, getName, getOutputStream, getURL, getUseCaches, hashCode, isContainedIn, isDirectory, lastModified, length, list, renameTo, toString |
| 从类 org.eclipse.jetty.util.resource.Resource 继承的方法 |
encode, finalize, getAlias, getAssociate, getDefaultUseCaches, getListHTML, getResource, getURI, getWeakETag, isContainedIn, newClassPathResource, newClassPathResource, newResource, newResource, newResource, newResource, newResource, newSystemResource, setAssociate, setDefaultUseCaches, toURL, writeTo |
_jarConnection
protected JarURLConnection _jarConnection
release
public void release()
- 从类
URLResource 复制的描述
- Release any resources held by the resource.
- 覆盖:
- 类
URLResource 中的 release
checkConnection
protected boolean checkConnection()
- 覆盖:
- 类
URLResource 中的 checkConnection
newConnection
protected void newConnection()
throws IOException
- 抛出:
IOException - Sub-classes of JarResource may throw an IOException (or subclass)
exists
public boolean exists()
- Returns true if the respresenetd resource exists.
- 覆盖:
- 类
URLResource 中的 exists
getFile
public File getFile()
throws IOException
- 从类
URLResource 复制的描述
- Returns an File representing the given resource or NULL if this
is not possible.
- 覆盖:
- 类
URLResource 中的 getFile
- 抛出:
IOException
getInputStream
public InputStream getInputStream()
throws IOException
- 从类
URLResource 复制的描述
- Returns an input stream to the resource
- 覆盖:
- 类
URLResource 中的 getInputStream
- 抛出:
IOException
copyTo
public void copyTo(File directory)
throws IOException
- 覆盖:
- 类
Resource 中的 copyTo
- 抛出:
IOException
newJarResource
public static Resource newJarResource(Resource resource)
throws IOException
- 抛出:
IOException
Copyright © 2013. All Rights Reserved.