ucar.unidata.util
Class TemporaryDir

java.lang.Object
  extended by ucar.unidata.util.TemporaryDir

public class TemporaryDir
extends Object

Version:
$Revision: 1.52 $

Constructor Summary
TemporaryDir(File dir)
          _more_
TemporaryDir(File dir, int maxFiles, long maxSize, long maxAge)
          _more_
TemporaryDir(String dir)
          _more_
 
Method Summary
 List<File> findFilesToScour()
          _more_
 File getDir()
          _more_
 long getMaxAge()
          Get the MaxAge property.
 int getMaxFiles()
          Get the MaxFiles property.
 long getMaxSize()
          Get the MaxBytes property.
 boolean getTouched()
          Get the Touched property.
 boolean haveChanged()
          _more_
 void setMaxAge(long value)
          Set the MaxAge property.
 void setMaxFiles(int value)
          Set the MaxFiles property.
 void setMaxSize(long value)
          Set the MaxBytes property.
 void setTouched(boolean value)
          Set the Touched property.
 String toString()
          _more_
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemporaryDir

public TemporaryDir(String dir)
_more_

Parameters:
dir - _more_

TemporaryDir

public TemporaryDir(File dir)
_more_

Parameters:
dir - _more_

TemporaryDir

public TemporaryDir(File dir,
                    int maxFiles,
                    long maxSize,
                    long maxAge)
_more_

Parameters:
dir - _more_
maxFiles - _more_
maxSize - _more_
maxAge - _more_
Method Detail

haveChanged

public boolean haveChanged()
_more_

Returns:
_more_

toString

public String toString()
_more_

Overrides:
toString in class Object
Returns:
_more_

findFilesToScour

public List<File> findFilesToScour()
_more_

Returns:
_more_

getDir

public File getDir()
_more_

Returns:
_more_

setMaxFiles

public void setMaxFiles(int value)
Set the MaxFiles property.

Parameters:
value - The new value for MaxFiles

getMaxFiles

public int getMaxFiles()
Get the MaxFiles property.

Returns:
The MaxFiles

setMaxSize

public void setMaxSize(long value)
Set the MaxBytes property.

Parameters:
value - The new value for MaxBytes

getMaxSize

public long getMaxSize()
Get the MaxBytes property.

Returns:
The MaxBytes

setMaxAge

public void setMaxAge(long value)
Set the MaxAge property.

Parameters:
value - The new value for MaxAge

getMaxAge

public long getMaxAge()
Get the MaxAge property.

Returns:
The MaxAge

setTouched

public void setTouched(boolean value)
Set the Touched property.

Parameters:
value - The new value for Touched

getTouched

public boolean getTouched()
Get the Touched property.

Returns:
The Touched