예제 #1
0
 /** readObject is called to restore the state of the ServicePermission from a stream. */
 private synchronized void readObject(java.io.ObjectInputStream s)
     throws IOException, ClassNotFoundException {
   // Read in the action, then initialize the rest
   s.defaultReadObject();
   init(getMask(actions));
 }
예제 #2
0
 /**
  * Package private constructor used by PackagePermissionCollection.
  *
  * @param name class name
  * @param action mask
  */
 PackagePermission(String name, int mask) {
   super(name);
   init(mask);
 }