/** 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)); }
/** * Package private constructor used by PackagePermissionCollection. * * @param name class name * @param action mask */ PackagePermission(String name, int mask) { super(name); init(mask); }