public class SelectiveJarResource extends JarResource
Modifier and Type | Field and Description |
---|---|
static List<String> |
DEFAULT_EXCLUDES |
static List<String> |
DEFAULT_INCLUDES |
_jarConnection
_connection, _in, _url, _urlString
__defaultUseCaches
Constructor and Description |
---|
SelectiveJarResource(URL url) |
SelectiveJarResource(URL url,
boolean useCaches) |
Modifier and Type | Method and Description |
---|---|
void |
copyTo(File directory)
Copy the Resource to the new destination file.
|
protected boolean |
isExcluded(String name) |
protected boolean |
isIncluded(String name) |
void |
setCaseSensitive(boolean caseSensitive) |
void |
setExcludes(List<String> patterns) |
void |
setIncludes(List<String> patterns) |
checkConnection, close, exists, getFile, getInputStream, newConnection, newJarResource
addPath, delete, equals, getInputStream, getName, getReadableByteChannel, getURL, getUseCaches, hashCode, isContainedIn, isDirectory, lastModified, length, list, renameTo, toString
encode, finalize, getAlias, getAllResources, getAssociate, getDefaultUseCaches, getListHTML, getResource, getURI, getWeakETag, isAlias, isContainedIn, newClassPathResource, newClassPathResource, newResource, newResource, newResource, newResource, newResource, newSystemResource, release, setAssociate, setDefaultUseCaches, toURL, writeTo
public SelectiveJarResource(URL url)
public SelectiveJarResource(URL url, boolean useCaches)
public void setCaseSensitive(boolean caseSensitive)
protected boolean isIncluded(String name)
protected boolean isExcluded(String name)
public void copyTo(File directory) throws IOException
Resource
Will not replace existing destination file.
copyTo
in class JarResource
directory
- the destination file to createIOException
- if unable to copy the resourceJarResource.copyTo(java.io.File)
Copyright © 1995-2015 Webtide. All Rights Reserved.