Java 8 PosixFilePermission - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 PosixFilePermission class.

This code example shows how to use the following methods:ordinal
package org.eclipse.tycho.plugins.tar; 
 
import java.nio.file.attribute.PosixFilePermission; 
import java.util.Set; 
 
public class FilePermissionHelper { 
 
    private static final int OWNER_READ_FILEMODE = 0400; 
    private static final int OWNER_WRITE_FILEMODE = 0200; 
    private static final int OWNER_EXEC_FILEMODE = 0100; 
    private static final int GROUP_READ_FILEMODE = 0040; 
    private static final int GROUP_WRITE_FILEMODE = 0020; 
    private static final int GROUP_EXEC_FILEMODE = 0010; 
    private static final int OTHERS_READ_FILEMODE = 0004; 
    private static final int OTHERS_WRITE_FILEMODE = 0002; 
    private static final int OTHERS_EXEC_FILEMODE = 0001; 
 
    private FilePermissionHelper() { 
    } 
 
4
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:ordinal
/** 
 * Attribute provider that provides the "unix" attribute view. 
 * 
 * @author Colin Decker 
 */ 
final class UnixAttributeProvider extends AttributeProvider { 
 
  private static final ImmutableSet<String> ATTRIBUTES = ImmutableSet.of(
      "uid", 
      "ino", 
      "dev", 
      "nlink", 
      "rdev", 
      "ctime", 
      "mode", 
      "gid"); 
 
  private static final ImmutableSet<String> INHERITED_VIEWS =
      ImmutableSet.of("basic", "owner", "posix"); 
 
3
CodeRank
Experience pair programming with AI  Get Codota for Java
See Code Examples for Java 8 PosixFilePermission Methods: