RichFaces CDK Generator 4.2.0.CR1

org.richfaces.cdk
Class OutputFileManagerImpl

java.lang.Object
  extended by org.richfaces.cdk.OutputFileManagerImpl
All Implemented Interfaces:
FileManager, OutputFileManager

public class OutputFileManagerImpl
extends Object
implements OutputFileManager

Author:
asmirnov@exadel.com

Constructor Summary
OutputFileManagerImpl(File folder)
           
 
Method Summary
 Writer createOutput(String path, long lastModified)
          

Create new file in output folder.

 File getFile(String path)
          

Get existing file or directory.

 Iterable<File> getFiles()
          

Get collection of all source files for this manager.

 Iterable<File> getFolders()
          

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputFileManagerImpl

public OutputFileManagerImpl(File folder)
Method Detail

createOutput

public Writer createOutput(String path,
                           long lastModified)
                    throws IOException
Description copied from interface: FileManager

Create new file in output folder.

Specified by:
createOutput in interface FileManager
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:
IOException

getFile

public File getFile(String path)
             throws FileNotFoundException
Description copied from interface: FileManager

Get existing file or directory.

Specified by:
getFile in interface FileManager
Returns:
Throws:
FileNotFoundException

getFiles

public Iterable<File> getFiles()
Description copied from interface: FileManager

Get collection of all source files for this manager.

Specified by:
getFiles in interface FileManager
Returns:
collection of files explicitly included for processing.

getFolders

public Iterable<File> getFolders()

Specified by:
getFolders in interface FileManager
Returns:
the folders

RichFaces CDK Generator 4.2.0.CR1

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.