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() { 
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(
  private static final ImmutableSet<String> INHERITED_VIEWS =
      ImmutableSet.of("basic", "owner", "posix"); 
See Code Examples for Java 8 PosixFilePermission Methods: