|
Quick Lists
|
|
Bug ID:
|
4137450
|
|
Votes
|
1
|
|
Synopsis
|
Need FileEvent class
|
|
Category
|
java:classes_io
|
|
Reported Against
|
1.2beta3
|
|
Release Fixed
|
|
|
State
|
11-Closed, duplicate of 4075058,
request for enhancement
|
|
Priority:
|
4-Low
|
|
Related Bugs
|
4075058
|
|
Submit Date
|
12-MAY-1998
|
|
Description
|
In order to combine JAVA with a native library
for messaging I need to be informed, whenever
data is available from a given filedescriptor.
This would imply to wrap a filedesc from C into
java and register a listener to a FileEvent on
this file descriptor. This is only needed in
conjunction with AWT. So I would like to do :
int fd = myNativeFunction(someArgs);
FileDescriptor javaFD = new FileDescriptor(fd);
javaFD.addFileEventListener(new FileEventListener() {
public void fileEventProcessed(int flags){
myNativeProcessData();
}
}
(Review ID: 28982)
======================================================================
|
|
Work Around
|
Until now, a dedicated thread for listening is
need, that performs busy waiting, thus consuming
unnecessary system resources.
======================================================================
|
|
Evaluation
|
N/A
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |