|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.xsltmp.util.FileCache
public class FileCache
Stores processed contents of files in a file cache to prevent duplicate processing.
| Constructor Summary | |
|---|---|
FileCache(org.apache.maven.plugin.logging.Log log,
File rebaseTo,
File storeAt,
String encoding)
Create file cache. |
|
| Method Summary | |
|---|---|
Reader |
retrieve(File sourceFile)
Retrieve the processed content of a file. |
void |
store(Reader contentReader,
File sourceFile)
Store the processed content of the source file in the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileCache(org.apache.maven.plugin.logging.Log log,
File rebaseTo,
File storeAt,
String encoding)
log - Maven logrebaseTo - Directory against which to re-base the names of filesstoreAt - Directory where to store the processed contents of the filesencoding - Encoding to use for the cache files| Method Detail |
|---|
public void store(Reader contentReader,
File sourceFile)
contentReader - Reader of the processed contentsourceFile - The source file (that was processed)public Reader retrieve(File sourceFile)
sourceFile - The file whose processed content to retrieve
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||