|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.DataUtilities
public class DataUtilities
Utility functions for use when implementing working with data classes.
TODO: Move FeatureType manipulation to feature package
Constructor Summary | |
---|---|
DataUtilities()
|
Method Summary | |
---|---|
static java.lang.String[] |
attributeNames(org.opengis.filter.expression.Expression expression)
Deprecated. use #attributeNames(Expression, FeatureType) / |
static java.lang.String[] |
attributeNames(org.opengis.filter.expression.Expression expression,
org.opengis.feature.simple.SimpleFeatureType featureType)
Traverses the expression and returns any encoutered property names. |
static java.lang.String[] |
attributeNames(org.opengis.filter.Filter filter)
Deprecated. use #attributeNames(Filter, FeatureType) / |
static java.lang.String[] |
attributeNames(org.opengis.filter.Filter filter,
org.opengis.feature.simple.SimpleFeatureType featureType)
Traverses the filter and returns any encoutered property names. |
static java.lang.String[] |
attributeNames(org.opengis.feature.simple.SimpleFeatureType featureType)
DOCUMENT ME! |
static boolean |
attributesEqual(java.lang.Object att,
java.lang.Object otherAtt)
DOCUMENT ME! |
static com.vividsolutions.jts.geom.Envelope |
bounds(FeatureCollection<? extends org.opengis.feature.type.FeatureType,? extends org.opengis.feature.Feature> collection)
Manually calculates the bounds of a feature collection. |
static java.net.URL |
changeUrlExt(java.net.URL url,
java.lang.String postfix)
Changes the ending (e.g. |
static java.io.File |
checkDirectory(java.io.File file)
Checks that the provided directory path refers to an existing/readable directory. |
static boolean |
checkFileReadable(java.io.File file,
java.util.logging.Logger logger)
Checks that a File is a real file, exists and is readable. |
static DefaultFeatureCollection |
collection(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> featureCollection)
Copies the provided features into a FeatureCollection. |
static FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
collection(FeatureIterator<org.opengis.feature.simple.SimpleFeature> reader)
Copies the provided reader into a FeatureCollection, reader will be closed. |
static FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
collection(FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> reader)
Copies the provided reader into a FeatureCollection, reader will be closed. |
static FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
collection(java.util.List<org.opengis.feature.simple.SimpleFeature> list)
Copies the provided features into a FeatureCollection. |
static FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
collection(org.opengis.feature.simple.SimpleFeature feature)
Copies the provided features into a FeatureCollection. |
static FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
collection(org.opengis.feature.simple.SimpleFeature[] features)
Copies the provided features into a FeatureCollection. |
static int |
compare(org.opengis.feature.simple.SimpleFeatureType typeA,
org.opengis.feature.simple.SimpleFeatureType typeB)
Compare operation for FeatureType. |
static org.opengis.feature.simple.SimpleFeatureType |
createSubType(org.opengis.feature.simple.SimpleFeatureType featureType,
java.lang.String[] properties)
DOCUMENT ME! |
static org.opengis.feature.simple.SimpleFeatureType |
createSubType(org.opengis.feature.simple.SimpleFeatureType featureType,
java.lang.String[] properties,
org.opengis.referencing.crs.CoordinateReferenceSystem override)
Create a derived FeatureType |
static org.opengis.feature.simple.SimpleFeatureType |
createSubType(org.opengis.feature.simple.SimpleFeatureType featureType,
java.lang.String[] properties,
org.opengis.referencing.crs.CoordinateReferenceSystem override,
java.lang.String typeName,
java.net.URI namespace)
|
static org.opengis.feature.simple.SimpleFeatureType |
createType(java.lang.String identification,
java.lang.String typeSpec)
Utility method for FeatureType construction. |
static org.opengis.feature.simple.SimpleFeatureType |
createType(java.lang.String namespace,
java.lang.String typeName,
java.lang.String typeSpec)
Utility method for FeatureType construction. |
static java.lang.Object |
defaultValue(org.opengis.feature.type.AttributeDescriptor attributeType)
Provides a defautlValue for attributeType. |
static java.lang.Object |
defaultValue(java.lang.Class type)
Returns a non-null default value for the class that is passed in. |
static java.lang.Object[] |
defaultValues(org.opengis.feature.simple.SimpleFeatureType featureType)
DOCUMENT ME! |
static java.lang.Object[] |
defaultValues(org.opengis.feature.simple.SimpleFeatureType featureType,
java.lang.Object[] values)
DOCUMENT ME! |
static java.lang.Object |
duplicate(java.lang.Object src)
|
static java.io.FilenameFilter |
excludeFilters(java.io.FilenameFilter inputFilter,
java.io.FilenameFilter... filters)
Returns a IOFileFilter obtained by excluding from the first input filter argument,
the additional filter arguments. |
static java.net.URL |
extendURL(java.net.URL base,
java.lang.String extension)
Extends an URL . |
static java.util.Set<java.lang.String> |
fidSet(FeatureCollection<?,?> featureCollection)
Copies the feature ids from each and every feature into a set. |
static java.net.URL |
fileToURL(java.io.File file)
A replacement for File.toURI().toURL(). |
static java.net.URL |
getParentUrl(java.net.URL url)
The function is supposed to be equivalent to File .getParent(). |
static java.io.FilenameFilter |
includeFilters(java.io.FilenameFilter inputFilter,
java.io.FilenameFilter... filters)
Returns a IOFileFilter obtained by adding to the first input filter argument,
the additional filter arguments. |
static boolean |
isMatch(org.opengis.feature.type.AttributeDescriptor a,
org.opengis.feature.type.AttributeDescriptor b)
DOCUMENT ME! |
static java.util.List<org.opengis.feature.simple.SimpleFeature> |
list(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> featureCollection)
Copies the provided fetaures into a List. |
static Query |
mixQueries(Query firstQuery,
Query secondQuery,
java.lang.String handle)
Takes two Query objects and produce a new one by mixing the
restrictions of both of them. |
static org.opengis.feature.simple.SimpleFeature |
parse(org.opengis.feature.simple.SimpleFeatureType type,
java.lang.String fid,
java.lang.String[] text)
DOCUMENT ME! |
static FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
reader(java.util.Collection<org.opengis.feature.simple.SimpleFeature> collection)
Adapt a collection to a reader for use with FeatureStore.setFeatures( reader ). |
static FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
reader(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> collection)
Adapt a collection to a reader for use with FeatureStore.setFeatures( reader ). |
static FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
reader(org.opengis.feature.simple.SimpleFeature[] features)
Creates a FeatureReader |
static FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
results(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> collection)
Returns collection if non empty. |
static FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
results(org.opengis.feature.simple.SimpleFeature[] featureArray)
|
static org.opengis.feature.simple.SimpleFeature |
reType(org.opengis.feature.simple.SimpleFeatureType featureType,
org.opengis.feature.simple.SimpleFeature feature)
Creates duplicate of feature adjusted to the provided featureType. |
static FeatureSource<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
source(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> collection)
Wrap up the provided FeatureCollection as a feature soruce; allowing queries to be performed etc... |
static FeatureSource<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
source(org.opengis.feature.simple.SimpleFeature[] featureArray)
DOCUMENT ME! |
static java.lang.String |
spec(org.opengis.feature.type.FeatureType featureType)
A "quick" String representation of a FeatureType. |
static org.opengis.feature.simple.SimpleFeature |
template(org.opengis.feature.simple.SimpleFeatureType featureType)
Constructs an empty feature to use as a Template for new content. |
static org.opengis.feature.simple.SimpleFeature |
template(org.opengis.feature.simple.SimpleFeatureType featureType,
java.lang.Object[] atts)
DOCUMENT ME! |
static org.opengis.feature.simple.SimpleFeature |
template(org.opengis.feature.simple.SimpleFeatureType featureType,
java.lang.String featureID)
DOCUMENT ME! |
static org.opengis.feature.simple.SimpleFeature |
template(org.opengis.feature.simple.SimpleFeatureType featureType,
java.lang.String featureID,
java.lang.Object[] atts)
DOCUMENT ME! |
static java.io.File |
urlToFile(java.net.URL url)
Takes a URL and converts it to a File. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataUtilities()
Method Detail |
---|
public static java.lang.String[] attributeNames(org.opengis.feature.simple.SimpleFeatureType featureType)
featureType
- DOCUMENT ME!
public static java.net.URL fileToURL(java.io.File file)
The handling of file.toURL() is broken; the handling of file.toURI().toURL() is known to be broken on a few platforms like mac. We have the urlToFile( URL ) method that is able to untangle both these problems and we use it in the geotools library.
However occasionally we need to pick up a file and hand it to a third party library like EMF; this method performs a couple of sanity checks which we can use to prepare a good URL reference to a file in these situtations.
file
-
public static java.io.File urlToFile(java.net.URL url)
url
- a URL object that uses protocol "file"
public static java.lang.String[] attributeNames(org.opengis.filter.Filter filter, org.opengis.feature.simple.SimpleFeatureType featureType)
The feautre type is supplied as contexts used to lookup expressions in cases where the attributeName does not match the actual name of the type.
public static java.lang.String[] attributeNames(org.opengis.filter.Filter filter)
#attributeNames(Filter, FeatureType)
/
public static java.lang.String[] attributeNames(org.opengis.filter.expression.Expression expression, org.opengis.feature.simple.SimpleFeatureType featureType)
The feautre type is supplied as contexts used to lookup expressions in cases where the attributeName does not match the actual name of the type.
public static java.lang.String[] attributeNames(org.opengis.filter.expression.Expression expression)
#attributeNames(Expression, FeatureType)
/
public static int compare(org.opengis.feature.simple.SimpleFeatureType typeA, org.opengis.feature.simple.SimpleFeatureType typeB)
Results in:
Comparison is based on AttributeTypes, an IOException is thrown if the AttributeTypes are not compatiable.
Namespace is not considered in this opperations. You may still need to reType to get the correct namesapce, or reorder.
typeA
- FeatureType beind comparedtypeB
- FeatureType being compared againstpublic static boolean isMatch(org.opengis.feature.type.AttributeDescriptor a, org.opengis.feature.type.AttributeDescriptor b)
a
- DOCUMENT ME!b
- DOCUMENT ME!
public static org.opengis.feature.simple.SimpleFeature reType(org.opengis.feature.simple.SimpleFeatureType featureType, org.opengis.feature.simple.SimpleFeature feature) throws IllegalAttributeException
featureType
- FeatureType requestedfeature
- Origional Feature from DataStore
IllegalAttributeException
- If opperation could not be performedpublic static java.lang.Object duplicate(java.lang.Object src)
public static org.opengis.feature.simple.SimpleFeature template(org.opengis.feature.simple.SimpleFeatureType featureType) throws IllegalAttributeException
We may move this functionality to FeatureType.create( null )?
featureType
- Type of feature we wish to create
IllegalAttributeException
- if we could not create featureType
instance with acceptable default valuespublic static org.opengis.feature.simple.SimpleFeature template(org.opengis.feature.simple.SimpleFeatureType featureType, java.lang.String featureID) throws IllegalAttributeException
featureType
- DOCUMENT ME!featureID
- DOCUMENT ME!
IllegalAttributeException
- DOCUMENT ME!public static java.lang.Object[] defaultValues(org.opengis.feature.simple.SimpleFeatureType featureType) throws IllegalAttributeException
featureType
- DOCUMENT ME!
IllegalAttributeException
- DOCUMENT ME!public static org.opengis.feature.simple.SimpleFeature template(org.opengis.feature.simple.SimpleFeatureType featureType, java.lang.Object[] atts) throws IllegalAttributeException
featureType
- DOCUMENT ME!atts
- DOCUMENT ME!
IllegalAttributeException
- DOCUMENT ME!public static org.opengis.feature.simple.SimpleFeature template(org.opengis.feature.simple.SimpleFeatureType featureType, java.lang.String featureID, java.lang.Object[] atts) throws IllegalAttributeException
featureType
- DOCUMENT ME!featureID
- DOCUMENT ME!atts
- DOCUMENT ME!
IllegalAttributeException
- DOCUMENT ME!public static java.lang.Object[] defaultValues(org.opengis.feature.simple.SimpleFeatureType featureType, java.lang.Object[] values) throws IllegalAttributeException
featureType
- DOCUMENT ME!values
- DOCUMENT ME!
IllegalAttributeException
- DOCUMENT ME!
java.lang.ArrayIndexOutOfBoundsException
- DOCUMENT ME!public static java.lang.Object defaultValue(org.opengis.feature.type.AttributeDescriptor attributeType) throws IllegalAttributeException
Will return null if attributeType isNillable(), or attempt to use Reflection, or attributeType.parse( null )
attributeType
-
IllegalAttributeException
- If value cannot be constructed for
attribtueTypepublic static java.lang.Object defaultValue(java.lang.Class type)
type
-
public static FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> reader(org.opengis.feature.simple.SimpleFeature[] features) throws java.io.IOException
features
- Array of features
java.io.IOException
- If provided features Are null or empty
java.util.NoSuchElementException
- DOCUMENT ME!public static FeatureSource<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> source(org.opengis.feature.simple.SimpleFeature[] featureArray)
featureArray
- DOCUMENT ME!
java.io.IOException
- DOCUMENT ME!
java.lang.RuntimeException
- DOCUMENT ME!public static FeatureSource<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> source(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> collection)
collection
- FeatureCollection
java.lang.NullPointerException
- If the collection is null
java.lang.RuntimeException
public static FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> results(org.opengis.feature.simple.SimpleFeature[] featureArray)
public static FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> results(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> collection)
collection
-
java.io.IOException
- Raised if collection was emptypublic static FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> reader(java.util.Collection<org.opengis.feature.simple.SimpleFeature> collection) throws java.io.IOException
collection
- Collection of SimpleFeature
java.io.IOException
- IOException if there is any problem reading the content.public static FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> reader(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> collection) throws java.io.IOException
collection
- Collection of SimpleFeature
java.io.IOException
- IOException if there is any problem reading the content.public static FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> collection(org.opengis.feature.simple.SimpleFeature[] features)
Often used when gathering features for FeatureStore:
featureStore.addFeatures( DataUtilities.collection(array));
features
- Array of features
public static DefaultFeatureCollection collection(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> featureCollection)
Often used when gathering a FeatureCollection
FeatureCollection
public static java.util.List<org.opengis.feature.simple.SimpleFeature> list(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> featureCollection)
featureCollection
-
public static java.util.Set<java.lang.String> fidSet(FeatureCollection<?,?> featureCollection)
This method can be slurp an in memory record of the contents of a
featureCollection
-
public static FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> collection(java.util.List<org.opengis.feature.simple.SimpleFeature> list)
Often used when gathering a FeatureCollection
list
- features to add to a new FeatureCollection
public static FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> collection(org.opengis.feature.simple.SimpleFeature feature)
Often used when gathering features for FeatureStore:
featureStore.addFeatures( DataUtilities.collection(feature));
feature
- a feature to add to a new collection
public static FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> collection(FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> reader) throws java.io.IOException
Often used when gathering features for FeatureStore:
featureStore.addFeatures( DataUtilities.collection(reader));
java.io.IOException
public static FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> collection(FeatureIterator<org.opengis.feature.simple.SimpleFeature> reader) throws java.io.IOException
Often used when gathering features for FeatureStore:
featureStore.addFeatures( DataUtilities.collection(reader));
java.io.IOException
public static boolean attributesEqual(java.lang.Object att, java.lang.Object otherAtt)
att
- DOCUMENT ME!otherAtt
- DOCUMENT ME!
public static org.opengis.feature.simple.SimpleFeatureType createSubType(org.opengis.feature.simple.SimpleFeatureType featureType, java.lang.String[] properties, org.opengis.referencing.crs.CoordinateReferenceSystem override) throws SchemaException
featureType
- properties
- - if null, every property of the feature type in input will be usedoverride
-
SchemaException
public static org.opengis.feature.simple.SimpleFeatureType createSubType(org.opengis.feature.simple.SimpleFeatureType featureType, java.lang.String[] properties, org.opengis.referencing.crs.CoordinateReferenceSystem override, java.lang.String typeName, java.net.URI namespace) throws SchemaException
SchemaException
public static org.opengis.feature.simple.SimpleFeatureType createSubType(org.opengis.feature.simple.SimpleFeatureType featureType, java.lang.String[] properties) throws SchemaException
featureType
- DOCUMENT ME!properties
- DOCUMENT ME!
SchemaException
- DOCUMENT ME!public static org.opengis.feature.simple.SimpleFeatureType createType(java.lang.String identification, java.lang.String typeSpec) throws SchemaException
Will parse a String of the form: "name:Type,name2:Type2,..."
Where Type is defined by createAttribute.
You may indicate the default Geometry with an astrix: "*geom:Geometry". You may also indicate the srid (used to look up a EPSG code).
Examples:
name:"",age:0,geom:Geometry,centroid:Point,url:java.io.URL"
id:String,polygonProperty:Polygon:srid=32615
identification
- identification of FeatureType:
(namesapce).typeNametypeSpec
- Specification for FeatureType
SchemaException
public static org.opengis.feature.simple.SimpleFeatureType createType(java.lang.String namespace, java.lang.String typeName, java.lang.String typeSpec) throws SchemaException
Will parse a String of the form: "name:Type,name2:Type2,..."
Where Type is defined by createAttribute.
You may indicate the default Geometry with an astrix: "*geom:Geometry". You may also indicate the srid (used to look up a EPSG code).
Examples:
name:"",age:0,geom:Geometry,centroid:Point,url:java.io.URL"
id:String,polygonProperty:Polygon:srid=32615
identification
- identification of FeatureType:
(namesapce).typeNametypeSpec
- Specification for FeatureType
SchemaException
public static org.opengis.feature.simple.SimpleFeature parse(org.opengis.feature.simple.SimpleFeatureType type, java.lang.String fid, java.lang.String[] text) throws IllegalAttributeException
type
- DOCUMENT ME!fid
- DOCUMENT ME!text
- DOCUMENT ME!
IllegalAttributeException
- DOCUMENT ME!public static java.lang.String spec(org.opengis.feature.type.FeatureType featureType)
This string representation may be used with createType( name, spec ).
featureType
- FeatureType to represent
public static Query mixQueries(Query firstQuery, Query secondQuery, java.lang.String handle)
Query
objects and produce a new one by mixing the
restrictions of both of them.
The policy to mix the queries components is the following:
Query.ALL
)
retrieveAllProperties()
of some of the queries returns
true
it does not means that all the properties will be
joined. You must create the query with the names of the properties you
want to load.
firstQuery
- Query against this DataStoresecondQuery
- DOCUMENT ME!handle
- DOCUMENT ME!
java.lang.NullPointerException
- if some of the queries is null
java.lang.IllegalArgumentException
- if the type names of both queries do
not matchpublic static com.vividsolutions.jts.geom.Envelope bounds(FeatureCollection<? extends org.opengis.feature.type.FeatureType,? extends org.opengis.feature.Feature> collection)
collection
-
public static java.net.URL changeUrlExt(java.net.URL url, java.lang.String postfix) throws java.lang.IllegalArgumentException
URL
url
- URL
like file:/sds/a.bmp
or
http://www.some.org/foo/bar.shp
postfix
- New file extension for the URL
without .
URL
with new extension.
{@link
- MalformedURLException} if the new URL
can not be
created.
java.lang.IllegalArgumentException
public static java.net.URL getParentUrl(java.net.URL url) throws java.net.MalformedURLException
File
.getParent().
The URL
is converted to a String, truncated to the last / and
then recreated as a new URL.
{@link
- MalformedURLException} if the parent URL
can not
be created.
java.net.MalformedURLException
public static java.net.URL extendURL(java.net.URL base, java.lang.String extension) throws java.net.MalformedURLException
URL
.
base
- Has to be a URL
pointing to a directory. If it doesn't
end with a /
it will be added automatically.extension
- The part that will be added to the URL
java.net.MalformedURLException
- if the new URL
can not be created.public static boolean checkFileReadable(java.io.File file, java.util.logging.Logger logger)
File
is a real file, exists and is readable.
file
- the File
instance to check. Must not be null.logger
- an optional Logger
(can be null) where to log detailed
info about the file properties (path/readable/hidden/writable)
true
in case the file is a real file, exists and is readable;
false
otherwise.public static java.io.File checkDirectory(java.io.File file) throws java.lang.IllegalArgumentException
'/'
On UNIX systems; '\\
on Microsoft Windows systems.
directoryPath
- the input directory path. Must not be null.
java.lang.IllegalArgumentException
- in case the specified path doesn't rely on a
existing/readable directory.public static java.io.FilenameFilter excludeFilters(java.io.FilenameFilter inputFilter, java.io.FilenameFilter... filters)
IOFileFilter
obtained by excluding from the first input filter argument,
the additional filter arguments.
inputFilter
- the initial filter from which to exclude other ones.filters
- additional filters to be excluded
IOFileFilter
public static java.io.FilenameFilter includeFilters(java.io.FilenameFilter inputFilter, java.io.FilenameFilter... filters)
IOFileFilter
obtained by adding to the first input filter argument,
the additional filter arguments.
inputFilter
- the initial filter to which to add other ones.filters
- additional filters to be included in the main filter.
IOFileFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |