Android
android.os
public abstract class

android.os.FileObserver

java.lang.Object
android.os.FileObserver

Summary

Constants

      Value  
int  ACCESS    0x00000001 
int  ALL_EVENTS    4095  0x00000fff 
int  ATTRIB    0x00000004 
int  CLOSE_NOWRITE    16  0x00000010 
int  CLOSE_WRITE    0x00000008 
int  CREATE    256  0x00000100 
int  DELETE    512  0x00000200 
int  DELETE_SELF    1024  0x00000400 
int  MODIFY    0x00000002 
int  MOVED_FROM    64  0x00000040 
int  MOVED_TO    128  0x00000080 
int  MOVE_SELF    2048  0x00000800 
int  OPEN    32  0x00000020 

Public Constructors

            FileObserver(String path)
            FileObserver(String path, int mask)

Public Methods

abstract          void  onEvent(int event, String path)
          void  startWatching()
          void  stopWatching()

Protected Methods

          void  finalize()
Called by the virtual machine when there are no longer any (non-weak) references to the receiver.
Methods inherited from class java.lang.Object

Details

Constants

public static final int ACCESS

Constant Value: 1 (0x00000001)

public static final int ALL_EVENTS

Constant Value: 4095 (0x00000fff)

public static final int ATTRIB

Constant Value: 4 (0x00000004)

public static final int CLOSE_NOWRITE

Constant Value: 16 (0x00000010)

public static final int CLOSE_WRITE

Constant Value: 8 (0x00000008)

public static final int CREATE

Constant Value: 256 (0x00000100)

public static final int DELETE

Constant Value: 512 (0x00000200)

public static final int DELETE_SELF

Constant Value: 1024 (0x00000400)

public static final int MODIFY

Constant Value: 2 (0x00000002)

public static final int MOVED_FROM

Constant Value: 64 (0x00000040)

public static final int MOVED_TO

Constant Value: 128 (0x00000080)

public static final int MOVE_SELF

Constant Value: 2048 (0x00000800)

public static final int OPEN

Constant Value: 32 (0x00000020)

Public Constructors

public FileObserver(String path)

public FileObserver(String path, int mask)

Public Methods

public abstract void onEvent(int event, String path)

public void startWatching()

public void stopWatching()

Protected Methods

protected void finalize()

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.

Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56