Package org.eclipse.jetty.util.resource
Class JarResource
java.lang.Object
org.eclipse.jetty.util.resource.Resource
org.eclipse.jetty.util.resource.URLResource
org.eclipse.jetty.util.resource.JarResource
- All Implemented Interfaces:
Closeable,AutoCloseable,ResourceFactory
- Direct Known Subclasses:
JarFileResource
Deprecated.
-
Field Summary
Fields inherited from class org.eclipse.jetty.util.resource.Resource
__defaultUseCaches -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.Release any resources held by the resource.voidDeprecated.Copy the Resource to the new destination file.booleanexists()Deprecated.Returns true if the represented resource exists.getFile()Deprecated.Returns an File representing the given resource or NULL if this is not possible.Deprecated.Returns an input stream to the resource.static ResourcenewJarResource(Resource resource) Deprecated.Methods inherited from class org.eclipse.jetty.util.resource.URLResource
addPath, delete, equals, getName, getReadableByteChannel, getURL, getUseCaches, hashCode, isContainedIn, isDirectory, lastModified, length, list, renameTo, toStringMethods inherited from class org.eclipse.jetty.util.resource.Resource
encode, getAlias, getAllResources, getAssociate, getDefaultUseCaches, getListHTML, getListHTML, getResource, getURI, getWeakETag, getWeakETag, isAlias, isContainedIn, isSame, newClassPathResource, newClassPathResource, newResource, newResource, newResource, newResource, newResource, newResource, newSystemResource, release, setAssociate, setDefaultUseCaches, toURL, writeTo
-
Method Details
-
close
public void close()Deprecated.Description copied from class:URLResourceRelease any resources held by the resource.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classURLResource
-
exists
public boolean exists()Deprecated.Returns true if the represented resource exists.- Overrides:
existsin classURLResource- Returns:
- true if the represented resource exists.
-
getFile
Deprecated.Description copied from class:URLResourceReturns an File representing the given resource or NULL if this is not possible.- Overrides:
getFilein classURLResource- Returns:
- an File representing the given resource or NULL if this is not possible.
- Throws:
IOException- if unable to get the resource due to permissions
-
getInputStream
Deprecated.Description copied from class:URLResourceReturns an input stream to the resource. The underlying url connection will be nulled out to prevent re-use.- Overrides:
getInputStreamin classURLResource- Returns:
- an input stream to the resource
- Throws:
IOException- if unable to open the input stream
-
copyTo
Deprecated.Description copied from class:ResourceCopy the Resource to the new destination file.Will not replace existing destination file.
- Overrides:
copyToin classResource- Parameters:
directory- the destination file to create- Throws:
IOException- if unable to copy the resource
-
newJarResource
Deprecated.- Throws:
IOException
-