org.mortbay.util

Class JarResource

Implemented Interfaces:
Serializable

public class JarResource
extends URLResource

Field Summary

protected JarURLConnection
_jarConnection

Fields inherited from class org.mortbay.util.URLResource

_connection, _in, _url, _urlString

Method Summary

protected boolean
checkConnection()
boolean
exists()
Returns true if the respresenetd resource exists.
void
extract(File directory, boolean deleteOnExit)
static void
extract(Resource resource, File directory, boolean deleteOnExit)
File
getFile()
InputStream
getInputStream()
protected void
newConnection()
void
release()

Methods inherited from class org.mortbay.util.URLResource

addPath, checkConnection, delete, equals, exists, getFile, getInputStream, getName, getOutputStream, getURL, hashCode, isDirectory, lastModified, length, list, release, renameTo, toString

Methods inherited from class org.mortbay.util.Resource

addPath, cache, delete, encode, exists, finalize, getAlias, getAssociate, getFile, getInputStream, getListHTML, getName, getOutputStream, getURL, isDirectory, lastModified, length, list, newResource, newResource, newSystemResource, release, renameTo, setAssociate, writeTo

Field Details

_jarConnection

protected JarURLConnection _jarConnection

Method Details

checkConnection

protected boolean checkConnection()
Overrides:
checkConnection in interface URLResource

exists

public boolean exists()
Returns true if the respresenetd resource exists.
Overrides:
exists in interface URLResource

extract

public void extract(File directory,
                    boolean deleteOnExit)
            throws IOException

extract

public static void extract(Resource resource,
                           File directory,
                           boolean deleteOnExit)
            throws IOException

getFile

public File getFile()
            throws IOException
Overrides:
getFile in interface URLResource

getInputStream

public InputStream getInputStream()
            throws IOException
Overrides:
getInputStream in interface URLResource

newConnection

protected void newConnection()
            throws IOException

release

public void release()
Overrides:
release in interface URLResource

Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.