|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.io.File
|
+--freaklamarsch.io.FLMFile
Extension for the java 1.1 File class copied from the java 1.2 File class Copyright 2002 Sun Microsystems, Inc. All rights reserved. SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
| Field Summary |
| Fields inherited from class java.io.File |
pathSeparator, pathSeparatorChar, separator, separatorChar |
| Constructor Summary | |
FLMFile(java.lang.String pathname)
Creates a new File instance by converting the given
pathname string into an abstract pathname. |
|
| Method Summary | |
java.io.File[] |
listFiles()
Returns an array of abstract pathnames denoting the files in the directory denoted by this abstract pathname. |
java.io.File[] |
listFiles(java.io.FilenameFilter filter)
Returns an array of abstract pathnames denoting the files and directories in the directory denoted by this abstract pathname that satisfy the specified filter. |
| Methods inherited from class java.io.File |
canRead, canWrite, compareTo, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getName, getParent, getParentFile, getPath, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listRoots, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toString, toURI, toURL |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public FLMFile(java.lang.String pathname)
File instance by converting the given
pathname string into an abstract pathname. If the given string is
the empty string, then the result is the empty abstract pathname.
pathname - A pathname string
java.lang.NullPointerException - If the pathname argument is null| Method Detail |
public java.io.File[] listFiles()
If this abstract pathname does not denote a directory, then this
method returns null. Otherwise an array of
File objects is returned, one for each file or directory in
the directory. Pathnames denoting the directory itself and the
directory's parent directory are not included in the result. Each
resulting abstract pathname is constructed from this abstract pathname
using the constructor. Therefore if this pathname
is absolute then each resulting pathname is absolute; if this pathname
is relative then each resulting pathname will be relative to the same
directory.
File(File, String)
There is no guarantee that the name strings in the resulting array will appear in any specific order; they are not, in particular, guaranteed to appear in alphabetical order.
listFiles in class java.io.Filenull if this abstract pathname
does not denote a directory, or if an I/O error occurs.
java.lang.SecurityException - If a security manager exists and its SecurityManager.checkRead(java.lang.String)
method denies read access to the directorypublic java.io.File[] listFiles(java.io.FilenameFilter filter)
listFiles() method, except
that the pathnames in the returned array must satisfy the filter.
If the given filter is null then all
pathnames are accepted. Otherwise, a pathname satisfies the filter
if and only if the value true results when the
FilenameFilter.accept(java.io.File, java.lang.String) method of the filter is
invoked on this abstract pathname and the name of a file or
directory in the directory that it denotes.
listFiles in class java.io.Filefilter - A filename filter
null if this abstract pathname
does not denote a directory, or if an I/O error occurs.
java.lang.SecurityException - If a security manager exists and its SecurityManager.checkRead(java.lang.String)
method denies read access to the directory
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||