Lines Matching refs:dir
46 * File dir = new File("path to dir");
47 * FileErrorManager em = new FileErrorManager(dir);
100 * @param dir a directory to store the email files.
101 * @throws NullPointerException if <tt>dir</tt> is <tt>null</tt>
102 * @throws IllegalArgumentException if <tt>dir</tt> is a
108 public FileErrorManager(File dir) {
109 this.emailStore = dir;
149 File dir = this.emailStore;
150 if (dir.getClass() != File.class) { //For security reasons.
151 throw new IllegalArgumentException(dir.getClass().getName());
154 if (!dir.isDirectory()) {
158 if (!dir.canWrite()) { //Can throw under a security manager.
159 super.error(dir.getAbsolutePath(),
164 if (!dir.isAbsolute()) {
168 if (!dir.canRead()) { //Can throw under a security manager.
169 super.error(dir.getAbsolutePath(),
287 String dir = manager.getProperty(
289 if (dir == null) {
290 dir = AccessController.doPrivileged(new PrivilegedAction<String>() {
297 return new File(dir);