Class ZipDecompression

java.lang.Object
org.codice.ddf.catalog.transformer.zip.ZipDecompression
All Implemented Interfaces:
ddf.catalog.transform.InputCollectionTransformer

public class ZipDecompression extends Object implements ddf.catalog.transform.InputCollectionTransformer
  • Field Details

  • Constructor Details

    • ZipDecompression

      public ZipDecompression()
  • Method Details

    • transform

      public List<ddf.catalog.data.Metacard> transform(InputStream inputStream, Map<String,Serializable> arguments) throws ddf.catalog.transform.CatalogTransformerException
      Transforms a Zip InputStream into a List of Metacards. This method expects there to be a filePath and fileName key-value pair passed in the arguments map.
      Specified by:
      transform in interface ddf.catalog.transform.InputCollectionTransformer
      Parameters:
      inputStream - - the InputStream to transform
      arguments - - the arguments for the transformation ("filePath" and "fileName").
      Returns:
      the List of Metacards produced from the transformation.
      Throws:
      ddf.catalog.transform.CatalogTransformerException - when the transformation fails.