当前位置: 代码迷 >> Java相关 >> [求助]找了俩小时还不知道FileDescriptor是什么
  详细解决方案

[求助]找了俩小时还不知道FileDescriptor是什么

热度:228   发布时间:2006-06-07 20:24:00.0
[求助]找了俩小时还不知道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对象.它只是一个表示开放文件、开放套接字或者字节的另一个源或接收者

----------------解决方案--------------------------------------------------------