[求助]找了俩小时还不知道FileDescriptor是什么
请知道的告知其使用方法
查看API
public final class FileDescriptor
- extends Object
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.
Applications should not create their own file descriptors.
- Since:
- JDK1.0
- See Also:
FileInputStream
,FileOutputStream
一般自己的应用程序不必去创建一个FileDescriptor对象.它只是一个表示开放文件、开放套接字或者字节的另一个源或接收者