public class FileSet extends ArrayList<File>
for(File f : new FileSet("c:\\myfiles\\*.jAvA"))
System.out.println(f);
-->
c:\myfiles\FileSet.java
c:\myfiles\HTMLReader.java
...
modCount| Constructor and Description |
|---|
FileSet(File folderPlusWildcard)
Constructs a FileSet from a wildcard string (including path)
|
FileSet(File path,
String fname)
Constructs a FileSet from a wildcard string
|
FileSet(String folderPlusWildcard)
Constructs a FileSet from a wildcard string (including path)
|
| Modifier and Type | Method and Description |
|---|---|
static String |
extension(File f)
Returns the extension of a filename
|
static String |
extension(String f)
Returns the extension of a filename with dot
|
static File |
file(File f,
String... s)
Constructs a file from a folder, subfolder names and a filename
|
static void |
main(String[] argv)
Test routine
|
static File |
newExtension(File f,
String newex)
Exchanges the extension of a filename.
|
static String |
newExtension(String f,
String newex)
Exchanges the extension of a filename
|
static File |
noExtension(File f)
Deletes the file extension
|
static String |
noExtension(String f)
Deletes the file extension
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic FileSet(String folderPlusWildcard)
public FileSet(File folderPlusWildcard)
public static File file(File f, String... s)
public static File newExtension(File f, String newex)
public static String newExtension(String f, String newex)
public static void main(String[] argv)
Copyright © 2018. All rights reserved.