public interface Owner
A user and group ID that can be used to indicate file ownership.
从以下版本开始:
2.3.0
作者:
Phillip Webb
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final Owner
    Owner for root ownership.
  • 方法概要

    修饰符和类型
    方法
    说明
    long
    Return the group identifier (GID) of the owner.
    long
    Return the user identifier (UID) of the owner.
    static Owner
    of(long uid, long gid)
    Factory method to create a new Owner with specified user/group identifier.
  • 字段详细资料

    • ROOT

      static final Owner ROOT
      Owner for root ownership.
  • 方法详细资料

    • getUid

      long getUid()
      Return the user identifier (UID) of the owner.
      返回:
      the user identifier
    • getGid

      long getGid()
      Return the group identifier (GID) of the owner.
      返回:
      the group identifier
    • of

      static Owner of(long uid, long gid)
      Factory method to create a new Owner with specified user/group identifier.
      参数:
      uid - the user identifier
      gid - the group identifier
      返回:
      a new Owner instance