Class EmptyGenerator

java.lang.Object
org.codelibs.fess.thumbnail.impl.BaseThumbnailGenerator
org.codelibs.fess.thumbnail.impl.EmptyGenerator
All Implemented Interfaces:
ThumbnailGenerator

public class EmptyGenerator extends BaseThumbnailGenerator
Empty implementation of thumbnail generator that does not generate any thumbnails. This class is used as a no-op thumbnail generator when thumbnail generation is disabled or when no specific thumbnail generator is configured.
  • Constructor Details

    • EmptyGenerator

      public EmptyGenerator()
      Default constructor.
  • Method Details

    • generate

      public boolean generate(String thumbnailId, File outputFile)
      Generates a thumbnail for the specified ID and output file. This implementation always returns false, indicating no thumbnail was generated.
      Parameters:
      thumbnailId - the ID of the thumbnail to generate
      outputFile - the output file where the thumbnail should be saved
      Returns:
      false always, as this generator does not create thumbnails
    • destroy

      public void destroy()
      Destroys this generator and releases any resources. This implementation does nothing as no resources are held.