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


字段摘要
protected  JarURLConnection _jarConnection
           
 
从类 org.eclipse.jetty.util.resource.URLResource 继承的字段
_connection, _in, _url, _urlString
 
从类 org.eclipse.jetty.util.resource.Resource 继承的字段
__defaultUseCaches
 
方法摘要
protected  boolean checkConnection()
           
 void copyTo(File directory)
           
 boolean exists()
          Returns true if the respresenetd 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
protected  void newConnection()
           
static Resource newJarResource(Resource resource)
           
 void release()
          Release any resources held by the resource.
 
从类 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
 
从类 java.lang.Object 继承的方法
clone, getClass, notify, notifyAll, wait, wait, wait
 

字段详细信息

_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.