KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > nanocontainer > testmodel > FileSystemUsing


1 package org.nanocontainer.testmodel;
2
3 import java.io.File JavaDoc;
4
5 /**
6  * Used for testing permissions.
7  *
8  * @author Paul Hammant
9  * @version $Revision: 2614 $
10  */

11 public class FileSystemUsing {
12
13     public FileSystemUsing() {
14         File JavaDoc afile = File.listRoots()[0];
15         System.out.println("--> " + afile.getAbsolutePath());
16         new File JavaDoc(afile,"foo-bar-directory").mkdirs();
17         throw new RuntimeException JavaDoc("Whoa, should have barfed with access error");
18     }
19
20 }
21
Popular Tags