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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<ddf.catalog.data.Metacard> transform(InputStream inputStream, Map<String, Serializable> arguments) Transforms a Zip InputStream into a List ofMetacards.
-
Field Details
-
FILE_PATH
- See Also:
-
FILE_NAME
- See Also:
-
CONTENT
- See Also:
-
BUFFER_SIZE
public static final int BUFFER_SIZE- See Also:
-
-
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.CatalogTransformerExceptionTransforms a Zip InputStream into a List ofMetacards. This method expects there to be a filePath and fileName key-value pair passed in the arguments map.- Specified by:
transformin interfaceddf.catalog.transform.InputCollectionTransformer- Parameters:
inputStream- - the InputStream to transformarguments- - 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.
-