uic.widgets.filechooser
Class SystemUtil.KDESystemUtil.LinuxDevicesFile
java.lang.Object
java.io.File
uic.widgets.filechooser.SystemUtil.KDESystemUtil.LinuxDevicesFile
- All Implemented Interfaces:
- Serializable, Comparable<File>
- Enclosing class:
- SystemUtil.KDESystemUtil
protected static class SystemUtil.KDESystemUtil.LinuxDevicesFile
- extends File
Class for reading /etc/mtab for mount points.
Adds all files with mount point starting with a / to the listFiles array
- See Also:
- Serialized Form
Methods inherited from class java.io.File |
canRead, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getName, getParent, getParentFile, getPath, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listRoots, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toURI, toURL |
SystemUtil.KDESystemUtil.LinuxDevicesFile
public SystemUtil.KDESystemUtil.LinuxDevicesFile()
exists
public boolean exists()
- Overrides:
exists
in class File
canWrite
public boolean canWrite()
- Overrides:
canWrite
in class File
listFiles
public File[] listFiles()
throws SecurityException
- Parse /etc/mtab and return its mounts points.
A mount point is here defined as it should start with /dev and has a mount point starting with a /
- Overrides:
listFiles
in class File
- Returns:
- files mounted in mtab
- Throws:
SecurityException
listFiles
public File[] listFiles(FileFilter filter)
throws SecurityException
- Parse /etc/mtab and return its mounts points.
A mount point is here defined as it should start with /dev and has a mount point starting with a /
- Overrides:
listFiles
in class File
- Parameters:
filter
- the filter that is required to accept the files (or null when all files can be returned)
- Returns:
- files mounted in mtab
- Throws:
SecurityException
toString
public String toString()
- Overrides:
toString
in class File
Copyright © 2002-2004 Thomas Zander Available under the Free Apache licence