public abstract class ActivityListener extends Object
Instantiate this class and put it into LIST to start receiving callbacks.
Listeners must be concurrent and re-entrant safe.
| Modifier and Type | Field and Description |
|---|---|
static List<ActivityListener> |
LIST
These listeners get called.
|
| Constructor and Description |
|---|
ActivityListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
close(Object obj)
Called when a file is closed.
|
void |
fd_open(Object obj) |
void |
open(Object obj,
File file)
Called when a new file is opened.
|
void |
openSocket(Object obj)
Called when a new socket is opened.
|
public static final List<ActivityListener> LIST
public void open(Object obj, File file)
obj - FileInputStream, FileOutputStream, RandomAccessFile, or ZipFile.file - File being opened.public void openSocket(Object obj)
obj - Socket, ServerSocket or SocketChannelpublic void close(Object obj)
obj - FileInputStream, FileOutputStream, RandomAccessFile, Socket, ServerSocket, or ZipFile.public void fd_open(Object obj)
Copyright © 2018. All rights reserved.