Package org.codehaus.mojo.mrm.impl
Class GenerateOnErrorFileEntry
java.lang.Object
org.codehaus.mojo.mrm.api.AbstractEntry
org.codehaus.mojo.mrm.api.BaseFileEntry
org.codehaus.mojo.mrm.impl.GenerateOnErrorFileEntry
A delegating file entry that also knows how to generate the content if the entry it delegates to has problems.
- Since:
- 1.0
-
Constructor Summary
ConstructorDescriptionGenerateOnErrorFileEntry
(FileSystem fileSystem, DirectoryEntry parent, FileEntry delegateEntry, FileEntry generatorEntry) -
Method Summary
Methods inherited from class org.codehaus.mojo.mrm.api.AbstractEntry
equals, getFileSystem, getName, getParent, hashCode, toPath, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.codehaus.mojo.mrm.api.Entry
getFileSystem, getName, getParent, toPath
-
Constructor Details
-
GenerateOnErrorFileEntry
public GenerateOnErrorFileEntry(FileSystem fileSystem, DirectoryEntry parent, FileEntry delegateEntry, FileEntry generatorEntry) Creates aFileEntry
in the specified directory of the specified file system that delegates to anotherFileEntry
but can (and will) fall back to anotherFileEntry
if the primary delegate has an error.- Parameters:
fileSystem
- The file system.parent
- The parent directory.delegateEntry
- The primary delegate entry.generatorEntry
- The delegate entry that is more costly to use and therefore should only be used if the primary delegate has an error.- Since:
- 1.0
-
-
Method Details
-
getLastModified
- Throws:
IOException
-
getSize
- Throws:
IOException
-
getInputStream
- Throws:
IOException
-