|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use FilePredicate | |
|---|---|
| edu.rice.cs.plt.io | Provides extensions to the java.io package, which provides character- and byte- based
streams and buffers, files, file filters, and serialization. |
| edu.rice.cs.plt.swing | |
| Uses of FilePredicate in edu.rice.cs.plt.io |
|---|
| Fields in edu.rice.cs.plt.io declared as FilePredicate | |
|---|---|
static FilePredicate |
IOUtil.ALWAYS_ACCEPT
A FilePredicate that always accepts. |
static FilePredicate |
IOUtil.ALWAYS_REJECT
A FilePredicate that always rejects. |
static FilePredicate |
IOUtil.IS_DIRECTORY
A predicate that tests whether IOUtil.attemptIsDirectory(java.io.File) holds for a file. |
static FilePredicate |
IOUtil.IS_FILE
A predicate that tests whether IOUtil.attemptIsFile(java.io.File) holds for a file. |
| Methods in edu.rice.cs.plt.io that return FilePredicate | |
|---|---|
static FilePredicate |
IOUtil.and(FileFilter... filters)
Produce a conjunction of the given FileFilters. |
static FilePredicate |
IOUtil.and(Iterable<? extends FileFilter> filters)
Produce a conjunction of the given FileFilters. |
static FilePredicate |
IOUtil.asFilePredicate(FileFilter filter)
Define a FilePredicate in terms of a FileFilter (this provides access
to predicate operations like and and or). |
static FilePredicate |
IOUtil.asFilePredicate(Predicate<? super File> p)
Define a FileFilter in terms of a Predicate. |
static FilePredicate |
IOUtil.extensionFilePredicate(String extension)
Define a FilePredicate that accepts file objects with the given extension (that is,
for extension txt, file objects whose canonical-case names (see IOUtil.canonicalCase(java.io.File))
end in .txt). |
static FilePredicate |
IOUtil.fileKey(File f)
Produce a FilePredicate that acts as a "key" representing the current state of
the given file. |
static FilePredicate |
IOUtil.negate(FileFilter filter)
Produce the complement of the given FileFilter. |
static FilePredicate |
IOUtil.or(FileFilter... filters)
Produce a disjunction of the given FileFilters. |
static FilePredicate |
IOUtil.or(Iterable<? extends FileFilter> filters)
Produce a disjunction of the given FileFilters. |
static FilePredicate |
IOUtil.regexCanonicalCaseFilePredicate(String regex)
Define a FilePredicate that accepts files whose (simple) names in the
canonical case (see IOUtil.canonicalCase(java.io.File)) match a regular expression. |
static FilePredicate |
IOUtil.regexFilePredicate(Pattern regex)
Define a FilePredicate that accepts files whose (simple) names match
a regular expression. |
static FilePredicate |
IOUtil.regexFilePredicate(String regex)
Define a FilePredicate that accepts files whose (simple) names match
a regular expression. |
static FilePredicate |
IOUtil.sameAttributesFilePredicate(File f)
Define a FilePredicate that only accepts a file with the same attributes as
f (at creation time). |
static FilePredicate |
IOUtil.sameContentsFilePredicate(File f)
Define a FilePredicate that only accepts files with contents matching a CRC-32
hash of f (at creation time). |
static FilePredicate |
IOUtil.sameNameFilePredicate(String name)
Define a FilePredicate that only accepts files with the given name (where both names
are converted to the canonical case; see IOUtil.canonicalCase(java.io.File)). |
static FilePredicate |
IOUtil.samePathFilePredicate(File path)
Define a FilePredicate that only accepts files with the given path and name (where
both paths are converted to the canonical case; see IOUtil.canonicalCase(java.io.File)). |
| Methods in edu.rice.cs.plt.io with parameters of type FilePredicate | |
|---|---|
static File[] |
IOUtil.attemptListFiles(File f,
FilePredicate filter)
Make a best attempt at invoking File.listFiles(FileFilter). |
static SizedIterable<File> |
IOUtil.attemptListFilesAsIterable(File f,
FilePredicate filter)
Similar to IOUtil.attemptListFiles(File, FileFilter), but returns a non-null Iterable
rather than an array. |
static SizedIterable<File> |
IOUtil.listFilesRecursively(File f,
FilePredicate filter)
Produce a list of the recursive contents of a file. |
static SizedIterable<File> |
IOUtil.listFilesRecursively(File f,
FilePredicate filter,
FilePredicate recursionFilter)
Produce a list of the recursive contents of a file. |
| Uses of FilePredicate in edu.rice.cs.plt.swing |
|---|
| Methods in edu.rice.cs.plt.swing with parameters of type FilePredicate | |
|---|---|
static FileFilter |
SwingUtil.asSwingFileFilter(FilePredicate p,
String description)
Define a Swing file filter (for use with JFileChoosers) in terms if a
FileFilter. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||