net.mlw.vlh.adapter.file
Class FileInfo

java.lang.Object
  extended bynet.mlw.vlh.adapter.file.FileInfo

public class FileInfo
extends Object

Version:
$Revision: 1.3 $ $Date: 2004/08/10 20:41:38 $
Author:
Matthew L. Wilson

Constructor Summary
FileInfo(File file)
          Default constructor
 
Method Summary
 String getAbsolutePath()
           
 boolean getDirectory()
           
 String getExtention()
          Gets the extention of the file.
 Date getLastModified()
           
 long getLength()
           
 String getName()
           
 boolean getReadable()
           
 boolean getWritable()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileInfo

public FileInfo(File file)
Default constructor

Parameters:
file - to decorate.
Method Detail

getLastModified

public Date getLastModified()
See Also:
File.lastModified()

getName

public String getName()
See Also:
File.getName()

getExtention

public String getExtention()
Gets the extention of the file.

Returns:
The extension if one exists.

getLength

public long getLength()
See Also:
java.io.File#getLength()

getDirectory

public boolean getDirectory()
See Also:
File.isDirectory()

getReadable

public boolean getReadable()
See Also:
File.canRead()

getWritable

public boolean getWritable()
See Also:
File.canWrite()

getAbsolutePath

public String getAbsolutePath()
See Also:
File.getAbsolutePath()

toString

public String toString()
See Also:
Object.toString()


Copyright © 2003-2006 mlavilson. All Rights Reserved.