类 FileDescriptor

java.lang.Object
cn.taketoday.buildpack.platform.socket.FileDescriptor

class FileDescriptor extends Object
Provides access to the underlying file system representation of an open file.
从以下版本开始:
4.0
作者:
Phillip Webb, Harry Yang
另请参阅:
  • 字段详细资料

  • 构造器详细资料

    • FileDescriptor

      FileDescriptor(int handle, IntConsumer closer)
  • 方法详细资料

    • acquire

      Acquire an instance of the actual FileDescriptor.Handle. The caller must close the resulting handle when done.
      返回:
      the handle
    • release

      private void release()
    • close

      void close()
      Close the underlying file when all handles have been released.