类 FileDescriptor
java.lang.Object
cn.taketoday.buildpack.platform.socket.FileDescriptor
Provides access to the underlying file system representation of an open file.
- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb, Harry Yang
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) final classProvides access to the actual file descriptor handle.private static enumThe status of the file descriptor. -
字段概要
字段修饰符和类型字段说明private final FileDescriptor.Handleprivate final IntConsumerprivate final FileDescriptor.Handleprivate intprivate FileDescriptor.Status -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明(专用程序包) FileDescriptor.Handleacquire()Acquire an instance of the actualFileDescriptor.Handle.(专用程序包) voidclose()Close the underlying file when all handles have been released.private voidrelease()
-
字段详细资料
-
openHandle
-
closedHandler
-
closer
-
status
-
referenceCount
private int referenceCount
-
-
构造器详细资料
-
FileDescriptor
FileDescriptor(int handle, IntConsumer closer)
-
-
方法详细资料
-
acquire
FileDescriptor.Handle acquire()Acquire an instance of the actualFileDescriptor.Handle. The caller mustclosethe resulting handle when done.- 返回:
- the handle
-
release
private void release() -
close
void close()Close the underlying file when all handles have been released.
-