com.myjavaworld.jftp
Class LocalFile
java.lang.Object
com.myjavaworld.jftp.LocalFile
- All Implemented Interfaces:
- Serializable
public class LocalFile
- extends Object
- implements Serializable
Objects of this class represent files on the local system.
- Version:
- 2.0
- Author:
- Sai Pullabhotla, psai [at] jMethods [dot] com
- See Also:
- Serialized Form
LocalFile
public LocalFile(File file)
getFile
public File getFile()
getAbsolutePath
public String getAbsolutePath()
getAbsoluteFile
public LocalFile getAbsoluteFile()
getCanonicalPath
public String getCanonicalPath()
throws IOException
- Throws:
IOException
getCanonicalFile
public LocalFile getCanonicalFile()
throws IOException
- Throws:
IOException
getNameOld
public String getNameOld()
getName
public String getName()
getDisplayName
public String getDisplayName()
getExtension
public String getExtension()
getTypeOld
public String getTypeOld()
getType
public String getType()
getSize
public long getSize()
getLastModified
public long getLastModified()
isDirectory
public boolean isDirectory()
isFile
public boolean isFile()
exists
public boolean exists()
canRead
public boolean canRead()
canWrite
public boolean canWrite()
isHidden
public boolean isHidden()
getParentOld
public LocalFile getParentOld()
getParent
public LocalFile getParent()
listOld
public LocalFile[] listOld()
list
public LocalFile[] list()
listOld
public LocalFile[] listOld(com.myjavaworld.util.Filter filter)
list
public LocalFile[] list(com.myjavaworld.util.Filter filter)
listRoots
public static LocalFile[] listRoots()
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
compareTo
public int compareTo(Object obj)
toString
public String toString()
- Overrides:
toString
in class Object
getIcon
public Icon getIcon()
isTraversable
public boolean isTraversable()
delete
public boolean delete()
isDrive
public boolean isDrive()
Copyright © 2000-2012 jMethods, Inc.. All Rights Reserved.