Package com.sun.xfilechooser
Class BeanXFile
java.lang.Object
java.io.File
com.sun.xfilechooser.BeanXFile
- All Implemented Interfaces:
Serializable
,Comparable<File>
The BeanXFile class is the interface that makes an XFile object
look like a File object. This class is needed to support the
UI of the JFileChooser which accesses file objects.
Thus all the methods would call the corresponding XFile methods.
- See Also:
-
#XFile
- Serialized Form
-
Field Summary
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.File
canExecute, compareTo, createNewFile, createTempFile, createTempFile, deleteOnExit, getAbsoluteFile, getCanonicalFile, getFreeSpace, getParentFile, getTotalSpace, getUsableSpace, hashCode, isHidden, list, listFiles, listFiles, listFiles, listRoots, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toURI, toURL
-
Constructor Details
-
BeanXFile
-
BeanXFile
-
-
Method Details
-
getPath
-
getAbsolutePath
- Overrides:
getAbsolutePath
in classFile
-
getCanonicalPath
- Overrides:
getCanonicalPath
in classFile
-
getName
-
renameTo
-
getParent
-
exists
public boolean exists() -
canWrite
public boolean canWrite() -
canRead
public boolean canRead() -
isFile
public boolean isFile() -
isDirectory
public boolean isDirectory()- Overrides:
isDirectory
in classFile
-
isAbsolute
public boolean isAbsolute()- Overrides:
isAbsolute
in classFile
-
equals
-
lastModified
public long lastModified()- Overrides:
lastModified
in classFile
-
length
public long length() -
mkdir
public boolean mkdir() -
mkdirs
public boolean mkdirs() -
list
-
toString
-
delete
public boolean delete()
-