org.richfaces.cdk
Class SourceFileManagerImpl

java.lang.Object
  extended by org.richfaces.cdk.SourceFileManagerImpl
All Implemented Interfaces:
FileManager, SourceFileManager

public class SourceFileManagerImpl
extends java.lang.Object
implements SourceFileManager, FileManager

Author:
asmirnov@exadel.com

Constructor Summary
SourceFileManagerImpl(java.lang.Iterable<java.io.File> sources, java.lang.Iterable<java.io.File> folders)
           
 
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

SourceFileManagerImpl

public SourceFileManagerImpl(java.lang.Iterable<java.io.File> sources,
                             java.lang.Iterable<java.io.File> folders)
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.