com.myjavaworld.jftp
Class LocalFile

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

Constructor Summary
LocalFile(File file)
           
 
Method Summary
 boolean canRead()
           
 boolean canWrite()
           
 int compareTo(Object obj)
           
 boolean delete()
           
 boolean equals(Object obj)
           
 boolean exists()
           
 LocalFile getAbsoluteFile()
           
 String getAbsolutePath()
           
 LocalFile getCanonicalFile()
           
 String getCanonicalPath()
           
 String getDisplayName()
           
 String getExtension()
           
 File getFile()
           
 Icon getIcon()
           
 long getLastModified()
           
 String getName()
           
 String getNameOld()
           
 LocalFile getParent()
           
 LocalFile getParentOld()
           
 long getSize()
           
 String getType()
           
 String getTypeOld()
           
 boolean isDirectory()
           
 boolean isDrive()
           
 boolean isFile()
           
 boolean isHidden()
           
 boolean isTraversable()
           
 LocalFile[] list()
           
 LocalFile[] list(com.myjavaworld.util.Filter filter)
           
 LocalFile[] listOld()
           
 LocalFile[] listOld(com.myjavaworld.util.Filter filter)
           
static LocalFile[] listRoots()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalFile

public LocalFile(File file)
Method Detail

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.