クラス
java.nio.file.attribute.PosixFilePermissionの使用
-
PosixFilePermissionを使用しているパッケージ パッケージ 説明 java.nio.file ファイル、ファイル属性、およびファイル・システムにアクセスするためのJava仮想マシン用のインタフェースとクラスを定義します。java.nio.file.attribute ファイルおよびファイル・システム属性へのアクセスを提供するインタフェースとクラスです。 -
-
java.nio.fileでのPosixFilePermissionの使用
PosixFilePermission型の引数を持つ型を返すjava.nio.fileのメソッド 修飾子と型 メソッド 説明 static Set<PosixFilePermission>
Files. getPosixFilePermissions(Path path, LinkOption... options)
ファイルのPOSIXファイル・アクセス権を返します。PosixFilePermission型の型引数を持つjava.nio.fileのメソッド・パラメータ 修飾子と型 メソッド 説明 static Path
Files. setPosixFilePermissions(Path path, Set<PosixFilePermission> perms)
ファイルのPOSIXファイル・アクセス権を設定します。 -
java.nio.file.attributeでのPosixFilePermissionの使用
PosixFilePermissionを返すjava.nio.file.attributeのメソッド 修飾子と型 メソッド 説明 static PosixFilePermission
PosixFilePermission. valueOf(String name)
指定された名前を持つ、この型の列挙型定数を返します。static PosixFilePermission[]
PosixFilePermission. values()
この列挙型の定数を含む配列を、宣言されている順序で返します。PosixFilePermission型の引数を持つ型を返すjava.nio.file.attributeのメソッド 修飾子と型 メソッド 説明 static FileAttribute<Set<PosixFilePermission>>
PosixFilePermissions. asFileAttribute(Set<PosixFilePermission> perms)
指定されたファイル権限のコピーをカプセル化する(createFile
メソッドまたはcreateDirectory
メソッドに渡すのに適している)FileAttribute
を作成します。static Set<PosixFilePermission>
PosixFilePermissions. fromString(String perms)
指定されたString
表現に対応するアクセス権のセットを返します。Set<PosixFilePermission>
PosixFileAttributes. permissions()
ファイルのアクセス権を返します。PosixFilePermission型の型引数を持つjava.nio.file.attributeのメソッド・パラメータ 修飾子と型 メソッド 説明 static FileAttribute<Set<PosixFilePermission>>
PosixFilePermissions. asFileAttribute(Set<PosixFilePermission> perms)
指定されたファイル権限のコピーをカプセル化する(createFile
メソッドまたはcreateDirectory
メソッドに渡すのに適している)FileAttribute
を作成します。void
PosixFileAttributeView. setPermissions(Set<PosixFilePermission> perms)
ファイル・アクセス権を更新します。static String
PosixFilePermissions. toString(Set<PosixFilePermission> perms)
アクセス権のセットのString
表現を返します。
-