This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes File permissions and SecurityException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "File permissions and SecurityException" Watch "File permissions and SecurityException" New topic
Author

File permissions and SecurityException

Graeme Byers
Ranch Hand

Joined: Apr 16, 2004
Posts: 127
If I had access to a Unix machine I would check this myself.

Does Sun's phrase "security manager" include file permissions ?

If I attempt to (say) File write() to a file which allows me only read access, is a SecurityException raised ?. If not, what happens ?

Thank you.
Graeme Byers
Ranch Hand

Joined: Apr 16, 2004
Posts: 127
Got the answer - returns false.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: File permissions and SecurityException
 
Similar Threads
Plug-in/signed applet issue
Setting java properties
Problems deleting files
Preferences on the Mac
checkAccess() method of Thread Class !