Class PptxInputTransformer

java.lang.Object
ddf.catalog.transformer.input.pptx.PptxInputTransformer
All Implemented Interfaces:
ddf.catalog.transform.InputTransformer

public class PptxInputTransformer extends Object implements ddf.catalog.transform.InputTransformer
This is a decorator class that adds a thumbnail for PPTX files. It relies on an injected InputTransformer to extract the metadata, and then it generates a thumbnail image with Apache POI.
  • Constructor Details

    • PptxInputTransformer

      public PptxInputTransformer(ddf.catalog.transform.InputTransformer inputTransformer)
      The inputTransformer parameter will be used to generate the basic metadata. If the parameter is null, then a NullPointerException will be thrown.
      Parameters:
      inputTransformer - must be non-null
      Throws:
      NullPointerException
  • Method Details

    • transform

      public ddf.catalog.data.Metacard transform(InputStream input) throws IOException, ddf.catalog.transform.CatalogTransformerException
      Specified by:
      transform in interface ddf.catalog.transform.InputTransformer
      Throws:
      IOException
      ddf.catalog.transform.CatalogTransformerException
    • transform

      public ddf.catalog.data.Metacard transform(InputStream input, String id) throws IOException, ddf.catalog.transform.CatalogTransformerException
      Specified by:
      transform in interface ddf.catalog.transform.InputTransformer
      Throws:
      IOException
      ddf.catalog.transform.CatalogTransformerException