Example usage for java.io FilePermission getActions

List of usage examples for java.io FilePermission getActions

Introduction

In this page you can find the example usage for java.io FilePermission getActions.

Prototype

@Override
public String getActions() 

Source Link

Document

Returns the "canonical string representation" of the actions.

Usage

From source file:Main.java

public static void main(String[] args) throws IOException {
    FilePermission fp = new FilePermission("C://test.txt", "read");

    // the canonical string representation of the action
    String s = fp.getActions();

    System.out.print("Action: " + s);

}