org.openqa.jetty.util
Class JarResource
java.lang.Object
   org.openqa.jetty.util.Resource
org.openqa.jetty.util.Resource
       org.openqa.jetty.util.URLResource
org.openqa.jetty.util.URLResource
           org.openqa.jetty.util.JarResource
org.openqa.jetty.util.JarResource
- All Implemented Interfaces: 
- Serializable
- public class JarResource 
- extends URLResource
- See Also:
- Serialized Form
 
 
 
| Methods inherited from class org.openqa.jetty.util.URLResource | 
| addPath, delete, equals, getName, getOutputStream, getURL, hashCode, isDirectory, lastModified, length, list, renameTo, toString | 
 
| Methods inherited from class org.openqa.jetty.util.Resource | 
| cache, encode, finalize, getAlias, getAssociate, getListHTML, newResource, newResource, newSystemResource, setAssociate, writeTo | 
 
 
_jarConnection
protected transient JarURLConnection _jarConnection
release
public void release()
- Description copied from class: URLResource
- Release any resources held by the resource.
 
- 
- Overrides:
- releasein class- URLResource
 
- 
 
checkConnection
protected boolean checkConnection()
- 
- Overrides:
- checkConnectionin class- URLResource
 
- 
 
newConnection
protected void newConnection()
                      throws IOException
- 
- Throws:
- IOException
 
exists
public boolean exists()
- Returns true if the respresenetd resource exists.
 
- 
- Overrides:
- existsin class- URLResource
 
- 
 
getFile
public File getFile()
             throws IOException
- Description copied from class: URLResource
- Returns an File representing the given resource or NULL if this
 is not possible.
 
- 
- Overrides:
- getFilein class- URLResource
 
- 
- Throws:
- IOException
 
getInputStream
public InputStream getInputStream()
                           throws IOException
- Description copied from class: URLResource
- Returns an input stream to the resource
 
- 
- Overrides:
- getInputStreamin class- URLResource
 
- 
- Throws:
- IOException
 
extract
public static void extract(Resource resource,
                           File directory,
                           boolean deleteOnExit)
                    throws IOException
- 
- Throws:
- IOException
 
extract
public void extract(File directory,
                    boolean deleteOnExit)
             throws IOException
- 
- Throws:
- IOException
 
Copyright © 2012. All Rights Reserved.