Build 1.0_r1(from source)

android.os
Class FileObserver

java.lang.Object
  extended by android.os.FileObserver

public abstract class FileObserver
extends Object


Field Summary
static int ACCESS
           
static int ALL_EVENTS
           
static int ATTRIB
           
static int CLOSE_NOWRITE
           
static int CLOSE_WRITE
           
static int CREATE
           
static int DELETE
           
static int DELETE_SELF
           
static int MODIFY
           
static int MOVE_SELF
           
static int MOVED_FROM
           
static int MOVED_TO
           
static int OPEN
           
 
Constructor Summary
FileObserver(String path)
           
FileObserver(String path, int mask)
           
 
Method Summary
protected  void finalize()
          Called by the virtual machine when there are no longer any (non-weak) references to the receiver.
abstract  void onEvent(int event, String path)
           
 void startWatching()
           
 void stopWatching()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACCESS

public static final int ACCESS
See Also:
Constant Field Values

MODIFY

public static final int MODIFY
See Also:
Constant Field Values

ATTRIB

public static final int ATTRIB
See Also:
Constant Field Values

CLOSE_WRITE

public static final int CLOSE_WRITE
See Also:
Constant Field Values

CLOSE_NOWRITE

public static final int CLOSE_NOWRITE
See Also:
Constant Field Values

OPEN

public static final int OPEN
See Also:
Constant Field Values

MOVED_FROM

public static final int MOVED_FROM
See Also:
Constant Field Values

MOVED_TO

public static final int MOVED_TO
See Also:
Constant Field Values

CREATE

public static final int CREATE
See Also:
Constant Field Values

DELETE

public static final int DELETE
See Also:
Constant Field Values

DELETE_SELF

public static final int DELETE_SELF
See Also:
Constant Field Values

MOVE_SELF

public static final int MOVE_SELF
See Also:
Constant Field Values

ALL_EVENTS

public static final int ALL_EVENTS
See Also:
Constant Field Values
Constructor Detail

FileObserver

public FileObserver(String path)

FileObserver

public FileObserver(String path,
                    int mask)
Method Detail

finalize

protected void finalize()
Description copied from class: Object
Called by the virtual machine when there are no longer any (non-weak) references to the receiver. Subclasses can use this facility to guarantee that any associated resources are cleaned up before the receiver is garbage collected. Uncaught exceptions which are thrown during the running of the method cause it to terminate immediately, but are otherwise ignored.

Note: The virtual machine assumes that the implementation in class Object is empty.

Overrides:
finalize in class Object

startWatching

public void startWatching()

stopWatching

public void stopWatching()

onEvent

public abstract void onEvent(int event,
                             String path)

Build 1.0_r1(from source)

Please submit a feedback, bug or feature