org.richfaces.cdk
Interface FileManager

All Known Subinterfaces:
OutputFileManager, SourceFileManager
All Known Implementing Classes:
Generator.EmptyFileManager, OutputFileManagerImpl, SourceFileManagerImpl

public interface FileManager

Author:
asmirnov@exadel.com

Method Summary
 java.io.Writer createOutput(java.lang.String path, long lastModified)
          

Create new file in output folder.

 java.io.File getFile(java.lang.String path)
          

Get existing file or directory.

 java.lang.Iterable<java.io.File> getFiles()
          

Get collection of all source files for this manager.

 java.lang.Iterable<java.io.File> getFolders()
          

Return collection of all folders included in this manager instance.

 

Method Detail

getFile

java.io.File getFile(java.lang.String path)
                     throws java.io.FileNotFoundException

Get existing file or directory.

Parameters:
path -
Returns:
Throws:
java.io.FileNotFoundException

getFiles

java.lang.Iterable<java.io.File> getFiles()

Get collection of all source files for this manager.

Returns:
collection of files explicitly included for processing.

createOutput

java.io.Writer createOutput(java.lang.String path,
                            long lastModified)
                            throws java.io.IOException

Create new file in output folder.

Parameters:
path - relative path to output file.
lastModified - time of last modification of model.
Returns:
file descriptor or null if file exists and its modification time is later then lastModified parameter.
Throws:
java.io.IOException

getFolders

java.lang.Iterable<java.io.File> getFolders()

Return collection of all folders included in this manager instance.

Returns:


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.