This method of the UserFileIOPermission Class sets the types of user-directed file I/O access that the permission object should allow.
public void setAccessFlags(int type);