Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.commons.jci.listeners
Class FileChangeListener

    java.lang.Object
      org.apache.commons.jci.listeners.AbstractFilesystemAlterationListener
          org.apache.commons.jci.listeners.FileChangeListener

All Implemented Interfaces:
  FilesystemAlterationListener

    public class FileChangeListener

extends AbstractFilesystemAlterationListener

The most simple implemenation of an FilesystemAlterationListener.

Author:
  tcurdt

Field Summary

Fields inherited from class org.apache.commons.jci.listeners.AbstractFilesystemAlterationListener
`observer`

Constructor Summary
`FileChangeListener()`

Method Summary
`boolean` | `hasChanged()`
`void` | `onDirectoryChange(File pDir)`
`void` | `onDirectoryCreate(File pDir)`
`void` | `onDirectoryDelete(File pDir)`
`void` | `onFileChange(File pFile)`
`void` | `onFileCreate(File pFile)`
`void` | `onFileDelete(File pFile)`
`void` | `onStart(FilesystemAlterationObserver pObserver)`
`void` | `onStop(FilesystemAlterationObserver pObserver)`

Methods inherited from class org.apache.commons.jci.listeners.AbstractFilesystemAlterationListener
`getChangedDirectories, getChangedFiles, getCreatedDirectories, getCreatedFiles, getDeletedDirectories, getDeletedFiles, signals, waitForCheck, waitForEvent, waitForFirstCheck`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### FileChangeListener

    public FileChangeListener()

Method Detail

### hasChanged

    public boolean hasChanged()

### onStart

    public void onStart(FilesystemAlterationObserver pObserver)

  Specified by:
    `onStart` in interface `FilesystemAlterationListener`
  Overrides:
    `onStart` in class `AbstractFilesystemAlterationListener`

### onStop

    public void onStop(FilesystemAlterationObserver pObserver)

  Specified by:
    `onStop` in interface `FilesystemAlterationListener`
  Overrides:
    `onStop` in class `AbstractFilesystemAlterationListener`

### onFileChange

    public void onFileChange(File pFile)

  Specified by:
    `onFileChange` in interface `FilesystemAlterationListener`
  Overrides:
    `onFileChange` in class `AbstractFilesystemAlterationListener`

### onFileCreate

    public void onFileCreate(File pFile)

  Specified by:
    `onFileCreate` in interface `FilesystemAlterationListener`
  Overrides:
    `onFileCreate` in class `AbstractFilesystemAlterationListener`

### onFileDelete

    public void onFileDelete(File pFile)

  Specified by:
    `onFileDelete` in interface `FilesystemAlterationListener`
  Overrides:
    `onFileDelete` in class `AbstractFilesystemAlterationListener`

### onDirectoryChange

    public void onDirectoryChange(File pDir)

  Specified by:
    `onDirectoryChange` in interface `FilesystemAlterationListener`
  Overrides:
    `onDirectoryChange` in class `AbstractFilesystemAlterationListener`

### onDirectoryCreate

    public void onDirectoryCreate(File pDir)

  Specified by:
    `onDirectoryCreate` in interface `FilesystemAlterationListener`
  Overrides:
    `onDirectoryCreate` in class `AbstractFilesystemAlterationListener`

### onDirectoryDelete

    public void onDirectoryDelete(File pDir)

  Specified by:
    `onDirectoryDelete` in interface `FilesystemAlterationListener`
  Overrides:
    `onDirectoryDelete` in class `AbstractFilesystemAlterationListener`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004–2013 The Apache Software Foundation. All rights reserved.