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, newJarResourceaddPath, delete, equals, getInputStream, getName, getReadableByteChannel, getURL, getUseCaches, hashCode, isContainedIn, isDirectory, lastModified, length, list, renameTo, toStringencode, finalize, getAlias, getAllResources, getAssociate, getDefaultUseCaches, getListHTML, getResource, getURI, getWeakETag, getWeakETag, isAlias, isContainedIn, newClassPathResource, newClassPathResource, newResource, newResource, newResource, newResource, newResource, newSystemResource, release, setAssociate, setDefaultUseCaches, toURL, writeTopublic 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
ResourceWill not replace existing destination file.
copyTo in class JarResourcedirectory - the destination file to createIOException - if unable to copy the resourceJarResource.copyTo(java.io.File)Copyright © 1995–2017 Webtide. All rights reserved.