| org.griphyn.vdl.euryale.FileFactory
All known Subclasses: org.griphyn.vdl.euryale.FlatFileFactory,
FileFactory | public interface FileFactory (Code) | | This interface describes what file factories should look like.
author: Kavitha Ranganathan author: Jens-S. Vöckler author: Yong Zhao version: $Revision: 289 $ See Also: DAX2DAG |
Method Summary | |
public File | createFile(String basename) Virtual constructor: Creates the next file with the given basename. | public File | createFlatFile(String basename) Virtual constructor: Creates the next file with the given basename
which is guaranteed to be created in the base directory, and never
in any structured directories that child classes may implement. | public int | getCount() Returns the number of times the regular virtual constructor for
structured entries was called. | public int | getFlatCount() Returns the number of times the virtual constructor for flat files
was called. | public void | reset() Resets the helper structures after changing layout parameters. |
createFile | public File createFile(String basename) throws IOException(Code) | | Virtual constructor: Creates the next file with the given basename.
Parameters: basename - is the filename to create. Don't specify dirs here. a File structure which points to the new file. See Also: FileFactory.getCount() |
createFlatFile | public File createFlatFile(String basename) throws IOException(Code) | | Virtual constructor: Creates the next file with the given basename
which is guaranteed to be created in the base directory, and never
in any structured directories that child classes may implement.
Parameters: basename - is the filename to create. Don't specify dirs here. a File structure which points to the new file. See Also: FileFactory.getFlatCount() |
getCount | public int getCount()(Code) | | Returns the number of times the regular virtual constructor for
structured entries was called.
the count for createFile invocations. See Also: FileFactory.createFile(String) |
getFlatCount | public int getFlatCount()(Code) | | Returns the number of times the virtual constructor for flat files
was called.
the count for createFlatFile invocations. See Also: FileFactory.createFlatFile(String) |
reset | public void reset()(Code) | | Resets the helper structures after changing layout parameters. You
will also need to call this function after you invoked the virtual
constructors, but want to change parameter pertaining to the
directory structure. The file counters will also be reset!
|
|
|