打tar包工具TarUtil(10)

来源:互联网 发布:淘宝导出数据包 编辑:程序博客网 时间:2024/05/21 18:18

/**
         * A 3 digit octal string, specify the user, group and
         * other modes in the standard Unix fashion;
         * optional, default=0755
         *
         * @param octalString a 3 digit octal string.
         * @since Ant 1.6
         */
        public void setDirMode(String octalString)
        {
            this.dirMode = UnixStat.DIR_FLAG
                    | Integer.parseInt(octalString, MODE);
        }
       
        /**
         * ????¼??
         * @return the current directory mode
         * @since Ant 1.6
         */
        public int getDirMode()
        {
            return dirMode;
        }
       
        /**
         * The username for the tar entry
         * This is not the same as the UID.
         * @param userName the user name for the tar entry.
         */
        public void setUserName(String userName)
        {
            this.userName = userName;
        }
       
        /**
         * ????û???
         * @return the user name for the tar entry
         */
        public String getUserName()
        {
            return userName;
        }
       
        /**
         * The uid for the tar entry
         * This is not the same as the User name.
         * @param uid the id of the user for the tar entry.
         */
        public void setUid(int uid)
        {
            this.uid = uid;
        }

原创粉丝点击