@Deprecated public class FileSystemCapability extends Object
Moreover there can be additional capabilities to check and this class defines ways how one can communicated with a filesystem to find out whether the system is "capable" enough to be used in the operation.
Modifier and Type | Class and Description |
---|---|
static class |
FileSystemCapability.Bean
Deprecated.
For the same reason the whole class is.
|
Modifier and Type | Field and Description |
---|---|
static FileSystemCapability |
ALL
Deprecated.
Object that is capable of every thing.
|
static FileSystemCapability |
COMPILE
Deprecated.
Please use the ClassPath API instead.
|
static FileSystemCapability |
DEBUG
Deprecated.
Please use the ClassPath API instead.
|
static FileSystemCapability |
DOC
Deprecated.
Please use
JavadocForBinaryQuery instead. |
static FileSystemCapability |
EXECUTE
Deprecated.
Please use the ClassPath API instead.
|
Constructor and Description |
---|
FileSystemCapability()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Deprecated.
Adds PropertyChange listener.
|
boolean |
capableOf(FileSystemCapability c)
Deprecated.
Basic operation that tests whether this object
is capable to do different capability.
|
Enumeration<? extends FileSystem> |
fileSystems()
Deprecated.
Please use the ClassPath API instead.
|
FileObject |
find(String aPackage,
String name,
String ext)
Deprecated.
Please use the ClassPath API instead.
|
Enumeration<? extends FileObject> |
findAll(String aPackage,
String name,
String ext)
Deprecated.
Please use the ClassPath API instead.
|
Enumeration<? extends FileObject> |
findAllResources(String name)
Deprecated.
Please use the ClassPath API instead.
|
FileObject |
findResource(String resName)
Deprecated.
Please use the ClassPath API instead.
|
void |
removePropertyChangeListener(PropertyChangeListener l)
Deprecated.
Removes PropertyChange listener.
|
public static final FileSystemCapability ALL
@Deprecated public static final FileSystemCapability COMPILE
@Deprecated public static final FileSystemCapability EXECUTE
@Deprecated public static final FileSystemCapability DEBUG
@Deprecated public static final FileSystemCapability DOC
JavadocForBinaryQuery
instead.public boolean capableOf(FileSystemCapability c)
The default implementation claims that it is capable to handle only identical capability (==).
c
- capability to test@Deprecated public Enumeration<? extends FileSystem> fileSystems()
@Deprecated public FileObject findResource(String resName)
resName
- name of the resource@Deprecated public Enumeration<? extends FileObject> findAllResources(String name)
name
- name of the resourceFileObject
s@Deprecated public final FileObject find(String aPackage, String name, String ext)
find
. The first object that is found is returned or null
if none of the filesystems contain such a file.aPackage
- package name where each package is separated by a dotname
- name of the file (without dots) or null
if
one wants to obtain the name of a package and not a file in itext
- extension of the file or null
if one needs
a package and not a file nameFileObject
that represents file with given name or
null
if the file does not exist@Deprecated public final Enumeration<? extends FileObject> findAll(String aPackage, String name, String ext)
FileSystem.find(java.lang.String, java.lang.String, java.lang.String)
.aPackage
- package name where each package is separated by a dotname
- name of the file (without dots) or null
if
one wants to obtain the name of a package and not a file in itext
- extension of the file or null
if one needs
a package and not a file nameFileObject
spublic void addPropertyChangeListener(PropertyChangeListener l)
l
- the listener to be added.public void removePropertyChangeListener(PropertyChangeListener l)
l
- the listener to be removed.Built on August 25 2014. | Portions Copyright 1997-2014 Oracle. All rights reserved.