Class GenerateOnErrorFileEntry

All Implemented Interfaces:
Entry, FileEntry

public class GenerateOnErrorFileEntry extends BaseFileEntry
A delegating file entry that also knows how to generate the content if the entry it delegates to has problems.
Since:
1.0
  • Constructor Details

    • GenerateOnErrorFileEntry

      public GenerateOnErrorFileEntry(FileSystem fileSystem, DirectoryEntry parent, FileEntry delegateEntry, FileEntry generatorEntry)
      Creates a FileEntry in the specified directory of the specified file system that delegates to another FileEntry but can (and will) fall back to another FileEntry 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