public class DelegatingCompressedFileHandler extends AbstractJUMPReader
Constructor and Description |
---|
DelegatingCompressedFileHandler(JUMPReader reader,
java.util.Collection endings)
Constructs a DelegatingCompressedFileHandler that wraps a JUMPReader.
|
Modifier and Type | Method and Description |
---|---|
protected void |
mangle(DriverProperties dp,
java.lang.String fileProperty,
java.lang.String compressedFileProperty,
java.util.Collection myEndings) |
FeatureCollection |
read(DriverProperties dp)
Read the specified file using the filename given by the "File" property
and any other parameters.
|
getExceptions
public DelegatingCompressedFileHandler(JUMPReader reader, java.util.Collection endings)
endings
- strings found at the ends of filenames, used to identify
the file to extract from a .zip; does not apply to .gz filespublic FeatureCollection read(DriverProperties dp) throws java.lang.Exception
AbstractJUMPReader
read
in interface JUMPReader
read
in class AbstractJUMPReader
dp
- only the "File" property is necessary; if it is a .zip or
.gz, the required "CompressedFile" property will be
determined automaticallyjava.lang.Exception
protected void mangle(DriverProperties dp, java.lang.String fileProperty, java.lang.String compressedFileProperty, java.util.Collection myEndings) throws java.lang.Exception
java.lang.Exception