org.richfaces.cdk
Class OutputFileManagerImpl

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

public class OutputFileManagerImpl
extends java.lang.Object
implements OutputFileManager

Author:
asmirnov@exadel.com

Constructor Summary
OutputFileManagerImpl(java.io.File folder)
           
 
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()
          

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

Constructor Detail

OutputFileManagerImpl

public OutputFileManagerImpl(java.io.File folder)
Method Detail

createOutput

public java.io.Writer createOutput(java.lang.String path,
                                   long lastModified)
                            throws java.io.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:
java.io.IOException

getFile

public java.io.File getFile(java.lang.String path)
                     throws java.io.FileNotFoundException
Description copied from interface: FileManager

Get existing file or directory.

Specified by:
getFile in interface FileManager
Returns:
Throws:
java.io.FileNotFoundException

getFiles

public java.lang.Iterable<java.io.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 java.lang.Iterable<java.io.File> getFolders()

Specified by:
getFolders in interface FileManager
Returns:
the folders


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