Class DelegatingCompressedFileHandler
java.lang.Object
com.vividsolutions.jump.io.AbstractJUMPReader
com.vividsolutions.jump.io.datasource.DelegatingCompressedFileHandler
- All Implemented Interfaces:
JUMPReader, TaskMonitorSupport
Deprecated.
use CompressedFile instead [07.2016]
If the file is a .zip or .gz file, mangles the DriverProperties into the format
expected by many of the first JUMPReaders, which take responsibility
for doing the decompression. Really, JUMPReaders should not
have to be responsible for decompression -- they should be wrapped
by a CompressedFileHandler (not yet written) which would decompress the
data before handing it to the JUMPReader. Anyway, developers should now be
writing DataSources instead of JUMPReaders.
-
Constructor Summary
ConstructorsConstructorDescriptionDelegatingCompressedFileHandler(JUMPReader reader, Collection<String> endings) Deprecated.use CompressedFile instead [07.2016] -
Method Summary
Modifier and TypeMethodDescriptionprotected voidmangle(DriverProperties dp, String fileProperty, String compressedFileProperty, Collection<String> myEndings) Deprecated.read(DriverProperties dp) Deprecated.Methods inherited from class AbstractJUMPReader
addException, getExceptions, getTaskMonitor, setTaskMonitor
-
Constructor Details
-
DelegatingCompressedFileHandler
Deprecated.use CompressedFile instead [07.2016]Constructs a DelegatingCompressedFileHandler that wraps a JUMPReader.- Parameters:
endings- strings found at the ends of filenames, used to identify the file to extract from a .zip; does not apply to .gz files
-
-
Method Details
-
read
Deprecated.Description copied from class:AbstractJUMPReaderRead the specified file using the filename given by the "File" property and any other parameters.- Specified by:
readin interfaceJUMPReader- Specified by:
readin classAbstractJUMPReader- Parameters:
dp- only the "File" property is necessary; if it is a .zip or .gz, the required "CompressedFile" property will be determined automatically- Throws:
Exception
-
mangle
protected void mangle(DriverProperties dp, String fileProperty, String compressedFileProperty, Collection<String> myEndings) throws Exception Deprecated.- Throws:
Exception
-