1 19 20 package org.netbeans.core.execution; 21 22 import java.security.PermissionCollection ; 23 import java.security.Permission ; 24 import java.util.Enumeration ; 25 26 import org.openide.windows.InputOutput; 27 28 35 final class IOPermissionCollection extends PermissionCollection implements java.io.Serializable { 36 37 38 private InputOutput io; 39 40 private PermissionCollection delegated; 41 42 final TaskThreadGroup grp; 43 44 static final long serialVersionUID =2046381622544740109L; 45 46 protected IOPermissionCollection(InputOutput io, PermissionCollection delegated, TaskThreadGroup grp) { 47 this.io = io; 48 this.delegated = delegated; 49 this.grp = grp; 50 } 51 52 55 public boolean implies(Permission p) { 56 return delegated.implies(p); 57 } 58 59 public Enumeration <Permission > elements() { 60 return delegated.elements(); 61 } 62 63 public void add(Permission perm) { 64 delegated.add(perm); 65 } 66 67 public InputOutput getIO() { 69 return io; 70 } 71 72 public void setIO(InputOutput io) { 73 this.io = io; 74 } 75 76 public String toString() { 77 return delegated.toString(); 78 } 79 } 80 | Popular Tags |