iresourcelistener.java

来自「Java编写的目录监视器(DirectoryWatcher)源码 如果对C」· Java 代码 · 共 45 行

JAVA
45
字号
package com.lightspeedleader.directorywatcher;


public interface IResourceListener {

    /**
     * Monitoring has just started on this new resource.
     *
     * @param monitoredResource the resource now being monitored.
     */
    public void onStart(Object monitoredResource);

    /**
     * Monitoring has just ended on this new resource.
     *
     * @param notMonitoredResource the resource not being monitored anymore.
     */
    public void onStop(Object notMonitoredResource);

    /**
     * Something has been added to this resource, or the resource itself has
     * been added.
     *
     * @param newResource the new resource
     */
    public void onAdd(Object newResource);


    /**
     * The resource has been changed.
     *
     * @param changedResource the changed resource
     */
    public void onChange(Object changedResource);


    /**
     * Something has been added to this resource, or the resource itself has
     * been added.
     *
     * @param deletedResource the deleted resource
     */
    public void onDelete(Object deletedResource);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?