org.mmbase.util
Class XFile

java.lang.Object
  |
  +--org.mmbase.util.XFile

public class XFile
extends java.lang.Object

Retrieves the file properties from a File object and stores them as fields. Eg: the files' modification time will be stored as a moddate long variabele.

Author:
David V van Zeventer

Constructor Summary
XFile(java.io.File f)
          Creates a XFile object
XFile(java.lang.String filepath)
          Creates a XFile object
 
Method Summary
 java.lang.String getFilePath()
          Retrieves the file path.
 long getModTime()
          Retrieves the modification time
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XFile

public XFile(java.io.File f)
Creates a XFile object
Parameters:
f - the File to store the values of.

XFile

public XFile(java.lang.String filepath)
Creates a XFile object
Parameters:
filepath - the path of the file to store the values of.
Method Detail

getFilePath

public java.lang.String getFilePath()
Retrieves the file path.

getModTime

public long getModTime()
Retrieves the modification time


MMBase 2001