uic.widgets.filechooser
Class SystemUtil.KDESystemUtil.LinuxDevicesFile

java.lang.Object
  extended by java.io.File
      extended by 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

Field Summary
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
SystemUtil.KDESystemUtil.LinuxDevicesFile()
           
 
Method Summary
 boolean canWrite()
           
 boolean exists()
           
 File[] listFiles()
          Parse /etc/mtab and return its mounts points.
 File[] listFiles(FileFilter filter)
          Parse /etc/mtab and return its mounts points.
 String toString()
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SystemUtil.KDESystemUtil.LinuxDevicesFile

public SystemUtil.KDESystemUtil.LinuxDevicesFile()
Method Detail

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