public class SelectiveJarResource extends JarResource
| Modifier and Type | Field and Description |
|---|---|
static java.util.List<java.lang.String> |
DEFAULT_EXCLUDES |
static java.util.List<java.lang.String> |
DEFAULT_INCLUDES |
_jarConnection_connection, _in, _url, _urlString__defaultUseCaches| Constructor and Description |
|---|
SelectiveJarResource(java.net.URL url) |
SelectiveJarResource(java.net.URL url,
boolean useCaches) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyTo(java.io.File directory)
Copy the Resource to the new destination file.
|
protected boolean |
isExcluded(java.lang.String name) |
protected boolean |
isIncluded(java.lang.String name) |
void |
setCaseSensitive(boolean caseSensitive) |
void |
setExcludes(java.util.List<java.lang.String> patterns) |
void |
setIncludes(java.util.List<java.lang.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, getListHTML, getResource, getURI, getWeakETag, getWeakETag, isAlias, isContainedIn, newClassPathResource, newClassPathResource, newResource, newResource, newResource, newResource, newResource, newResource, newSystemResource, release, setAssociate, setDefaultUseCaches, toURL, writeTopublic static final java.util.List<java.lang.String> DEFAULT_INCLUDES
public static final java.util.List<java.lang.String> DEFAULT_EXCLUDES
public SelectiveJarResource(java.net.URL url)
public SelectiveJarResource(java.net.URL url,
boolean useCaches)
public void setCaseSensitive(boolean caseSensitive)
public void setIncludes(java.util.List<java.lang.String> patterns)
public void setExcludes(java.util.List<java.lang.String> patterns)
protected boolean isIncluded(java.lang.String name)
protected boolean isExcluded(java.lang.String name)
public void copyTo(java.io.File directory)
throws java.io.IOException
ResourceWill not replace existing destination file.
copyTo in class JarResourcedirectory - the destination file to createjava.io.IOException - if unable to copy the resourceJarResource.copyTo(java.io.File)Copyright © 1995–2022 Webtide. All rights reserved.