org.mortbay.util
Class JarResource

java.lang.Object
  |
  +--org.mortbay.util.Resource
        |
        +--org.mortbay.util.JarResource

public class JarResource
extends Resource


Method Summary
 boolean exists()
          Returns true if the respresenetd resource exists.
 void extract(java.io.File directory, boolean deleteOnExit)
           
 java.io.InputStream getInputStream()
          Returns an input stream to the resource
 void release()
          Release any resources held by the resource.
 
Methods inherited from class org.mortbay.util.Resource
addPath, canonicalPath, delete, equals, getFile, getName, getOutputStream, getURL, hashCode, isDirectory, lastModified, length, list, newResource, newResource, newSystemResource, renameTo, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

release

public void release()
Description copied from class: Resource
Release any resources held by the resource.
Overrides:
release in class Resource

exists

public boolean exists()
Returns true if the respresenetd resource exists.
Overrides:
exists in class Resource

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Description copied from class: Resource
Returns an input stream to the resource
Overrides:
getInputStream in class Resource

extract

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


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