/** * Constructs a new FilePermission with the path and actions specified. * * @param path the pathname of the file or directory to apply the actions to. * @param actions the actions for the {@code path}. May be any combination of "read", "write", * "execute" and "delete". * @throws IllegalArgumentException if {@code actions} is {@code null} or an empty string, or if * it contains a string other than "read", "write", "execute" and "delete". * @throws NullPointerException if {@code path} is {@code null}. */ public FilePermission(String path, String actions) { super(path); init(path, actions); }
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); init(getName(), actions); }