com.sun.xfilechooser

Class BeanXFile


public class BeanXFile
extends 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:
BeanXFile

Constructor Summary

BeanXFile(File dir, String name)
BeanXFile(String path)

Method Summary

boolean
canRead()
boolean
canWrite()
boolean
delete()
boolean
equals(Object obj)
boolean
exists()
String
getAbsolutePath()
String
getCanonicalPath()
String
getName()
String
getParent()
String
getPath()
boolean
isAbsolute()
boolean
isDirectory()
boolean
isFile()
long
lastModified()
long
length()
String[]
list()
boolean
mkdir()
boolean
mkdirs()
boolean
renameTo(File dest)
String
toString()

Constructor Details

BeanXFile

public BeanXFile(File dir,
                 String name)

BeanXFile

public BeanXFile(String path)

Method Details

canRead

public boolean canRead()

canWrite

public boolean canWrite()

delete

public boolean delete()

equals

public boolean equals(Object obj)

exists

public boolean exists()

getAbsolutePath

public String getAbsolutePath()

getCanonicalPath

public String getCanonicalPath()

getName

public String getName()

getParent

public String getParent()

getPath

public String getPath()

isAbsolute

public boolean isAbsolute()

isDirectory

public boolean isDirectory()

isFile

public boolean isFile()

lastModified

public long lastModified()

length

public long length()

list

public String[] list()

mkdir

public boolean mkdir()

mkdirs

public boolean mkdirs()

renameTo

public boolean renameTo(File dest)

toString

public String toString()