com.swfit.core.io
Class ReloadFile

java.lang.Object
  |
  +--java.io.File
        |
        +--com.swfit.core.io.ReloadFile
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class ReloadFile
extends java.io.File

The ReloadFile extends the java.io.File to store the value of the modification date for further reference.

Since:
SWFIT1.0
Version:
$Revision: 1.1 $ $Date: 2003/02/02 20:47:25 $
Author:
Olaf Havnes
See Also:
Serialized Form

Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
ReloadFile(java.io.File dir, java.lang.String file_name)
          Creates a new ReloadFile instance.
ReloadFile(java.lang.String file_path)
          Creates a new ReloadFile instance.
ReloadFile(java.lang.String file_dir, java.lang.String file_name)
          Creates a new ReloadFile instance.
 
Method Summary
 boolean modified()
          Checks if state has changed since last time the method was called.
 
Methods inherited from class java.io.File
canRead, canWrite, compareTo, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getName, getParent, getParentFile, getPath, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toString, toURL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReloadFile

public ReloadFile(java.lang.String file_path)
Creates a new ReloadFile instance.
Parameters:
file_path - The full path to the file

ReloadFile

public ReloadFile(java.lang.String file_dir,
                  java.lang.String file_name)
Creates a new ReloadFile instance.
Parameters:
file_dir - The path to the parent directory
file_name - The file name

ReloadFile

public ReloadFile(java.io.File dir,
                  java.lang.String file_name)
Creates a new ReloadFile instance.
Parameters:
dir - The parent directory
file_name - The file name
Method Detail

modified

public boolean modified()
Checks if state has changed since last time the method was called.
Returns:
the boolean value.


Swfit developer homepage
Copyright © 2003 Orgdot AS. All Rights Reserved.