public class ZipDecompression extends Object implements InputCollectionTransformer
| Modifier and Type | Field and Description |
|---|---|
static int |
BUFFER_SIZE |
static String |
CONTENT |
static String |
FILE_NAME |
static String |
FILE_PATH |
| Constructor and Description |
|---|
ZipDecompression() |
| Modifier and Type | Method and Description |
|---|---|
ZipValidator |
getZipValidator() |
void |
setZipValidator(ZipValidator zipValidator) |
List<Metacard> |
transform(InputStream inputStream,
Map<String,Serializable> arguments)
Transforms a Zip InputStream into a List of
Metacards. |
public static final String FILE_PATH
public static final String FILE_NAME
public static final String CONTENT
public static final int BUFFER_SIZE
public List<Metacard> transform(InputStream inputStream, Map<String,Serializable> arguments) throws CatalogTransformerException
Metacards. This method expects there to be
a filePath and fileName key-value pair passed in the arguments map.transform in interface InputCollectionTransformerinputStream - - the InputStream to transformarguments - - the arguments for the transformation ("filePath" and "fileName").Metacards produced from the transformation.CatalogTransformerException - when the transformation fails.public ZipValidator getZipValidator()
public void setZipValidator(ZipValidator zipValidator)
This work is licensed under a Creative Commons Attribution 4.0 International License.