equal
deleted
inserted
replaced
53 * <P> |
53 * <P> |
54 * The actions to be granted are passed to the constructor in a string containing |
54 * The actions to be granted are passed to the constructor in a string containing |
55 * a list of one or more comma-separated keywords. The possible keywords are |
55 * a list of one or more comma-separated keywords. The possible keywords are |
56 * "read", "write", "execute", "delete", and "readlink". Their meaning is |
56 * "read", "write", "execute", "delete", and "readlink". Their meaning is |
57 * defined as follows: |
57 * defined as follows: |
58 * <P> |
58 * |
59 * <DL> |
59 * <DL> |
60 * <DT> read <DD> read permission |
60 * <DT> read <DD> read permission |
61 * <DT> write <DD> write permission |
61 * <DT> write <DD> write permission |
62 * <DT> execute |
62 * <DT> execute |
63 * <DD> execute permission. Allows <code>Runtime.exec</code> to |
63 * <DD> execute permission. Allows <code>Runtime.exec</code> to |
295 } |
295 } |
296 |
296 |
297 /** |
297 /** |
298 * Checks if this FilePermission object "implies" the specified permission. |
298 * Checks if this FilePermission object "implies" the specified permission. |
299 * <P> |
299 * <P> |
300 * More specifically, this method returns true if:<p> |
300 * More specifically, this method returns true if: |
301 * <ul> |
301 * <ul> |
302 * <li> <i>p</i> is an instanceof FilePermission,<p> |
302 * <li> <i>p</i> is an instanceof FilePermission, |
303 * <li> <i>p</i>'s actions are a proper subset of this |
303 * <li> <i>p</i>'s actions are a proper subset of this |
304 * object's actions, and <p> |
304 * object's actions, and |
305 * <li> <i>p</i>'s pathname is implied by this object's |
305 * <li> <i>p</i>'s pathname is implied by this object's |
306 * pathname. For example, "/tmp/*" implies "/tmp/foo", since |
306 * pathname. For example, "/tmp/*" implies "/tmp/foo", since |
307 * "/tmp/*" encompasses all files in the "/tmp" directory, |
307 * "/tmp/*" encompasses all files in the "/tmp" directory, |
308 * including the one named "foo". |
308 * including the one named "foo". |
309 * </ul> |
309 * </ul> |