Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
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
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang