01: /*
02: * This file or a portion of this file is licensed under the terms of
03: * the Globus Toolkit Public License, found in file ../GTPL, or at
04: * http://www.globus.org/toolkit/download/license.html. This notice must
05: * appear in redistributions of this file, with or without modification.
06: *
07: * Redistributions of this Software, with or without modification, must
08: * reproduce the GTPL in: (1) the Software, or (2) the Documentation or
09: * some other similar material which is provided with the Software (if
10: * any).
11: *
12: * Copyright 1999-2004 University of Chicago and The University of
13: * Southern California. All rights reserved.
14: */
15:
16: package org.griphyn.vdl.euryale;
17:
18: import java.io.IOException;
19: import java.io.File;
20:
21: /**
22: * A Virtual Flat File Factory that does not do any existence checks while
23: * creating a directory. The factory, is used to create remote paths without
24: * checking for correctness.
25: *
26: * @author Karan Vahi
27: * @version $Revision: 289 $
28: */
29: public class VirtualFlatFileFactory extends FlatFileFactory {
30:
31: /**
32: * Constructor: Creates the directory and employs sanity checks.
33: * @param directory is the place where files should be placed.
34: * @throws IOException if the location is not a writable directory,
35: * or cannot be created as such.
36: */
37: public VirtualFlatFileFactory(File directory) throws IOException {
38: super (directory);
39: }
40:
41: /**
42: * Constructor: Creates the directory and employs sanity checks.
43: *
44: * @param directory is the place where files should be placed.
45: * @throws IOException if the location is not a writable directory,
46: * or cannot be created as such.
47: */
48: public VirtualFlatFileFactory(String directory) throws IOException {
49: super (directory);
50: }
51:
52: /**
53: * Checks the destination location for existence, if it can
54: * be created, if it is writable etc. Does no check as it is
55: * virtual.
56: *
57: * @param dir is the new base directory to optionally create
58: *
59: * @throws IOException
60: */
61: protected void sanityCheck(File dir) throws IOException {
62:
63: }
64:
65: }
|