org.apache.jetspeed.portal.expire
Class FileWatcher

java.lang.Object
  extended byorg.apache.jetspeed.portal.expire.FileWatcher
All Implemented Interfaces:
java.io.Serializable

public class FileWatcher
extends java.lang.Object
implements java.io.Serializable

A generic class for watching a file and determining if it has changed.

Version:
$Id: FileWatcher.java,v 1.16 2004/02/23 03:24:40 jford Exp $
Author:
Kevin A. Burton
See Also:
Serialized Form

Field Summary
static java.lang.String EXCEPTION_URL_NOT_IN_CACHE
           
static java.lang.String EXCEPTION_URL_NOT_NULL
           
 
Constructor Summary
FileWatcher(java.lang.String url)
          Create a FileWatcher with no parent info.
FileWatcher(java.lang.String url, java.lang.String parent)
          Create a new FileWatcher to watch the given URL.
 
Method Summary
 boolean hasChanged()
          Return true if the URL on which this is based has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXCEPTION_URL_NOT_NULL

public static final java.lang.String EXCEPTION_URL_NOT_NULL
See Also:
Constant Field Values

EXCEPTION_URL_NOT_IN_CACHE

public static final java.lang.String EXCEPTION_URL_NOT_IN_CACHE
See Also:
Constant Field Values
Constructor Detail

FileWatcher

public FileWatcher(java.lang.String url)
            throws java.io.IOException
Create a FileWatcher with no parent info.

See Also:
FileWatcher( String, String )

FileWatcher

public FileWatcher(java.lang.String url,
                   java.lang.String parent)
            throws java.io.IOException
Create a new FileWatcher to watch the given URL.

Method Detail

hasChanged

public boolean hasChanged()
Return true if the URL on which this is based has changed.



Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.