Hi, Here is the description about FileDescriptor in the API, could anyone kindly tell me what does the word opaque mean here?
Instances of the file descriptor class serve as an opaque handle to the underlying machine-specific structure representing an open file, an open socket, or another source or sink of bytes. The main practical use for a file descriptor is to create a FileInputStream or FileOutputStream to contain it.
OPAQUE means "solid colored", the opposite of transparent. From the API for interface Transparent: static int OPAQUE Represents image data that is guaranteed to be completely opaque, meaning that all pixels have an alpha value of 1.0.
"JavaRanch, where the deer and the Certified play" - David O'Meara
Hi James, The opaque handle they are talking about is the spl property of the FileDescriptor class . An object of this class allows u to twidle with implementation-specific things in an unique way without u bothering about the effect has been brought about,ie the File Descriptor object automatically connects to the handle reqd 2 perform the task on the object u are working with it without u passing the intricacies of it to the File Descriptor object. Hope this helps Regards, Kaushik