public class GeonamesFileRetriever extends AbstractFileRetriever
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
currentFileName, fileIndex, importerConfig, numberOfFileToDownload, status, statusMessage
Constructor and Description |
---|
GeonamesFileRetriever() |
Modifier and Type | Method and Description |
---|---|
void |
decompressFiles()
Method to call if files must be decompress (untar or unzip)
|
String |
getDownloadBaseUrl() |
String |
getDownloadDirectory() |
File[] |
getFilesToDecompress()
return an array of file that are to be decompressed
|
boolean |
isFileNotFoundTolerant() |
boolean |
shouldBeSkipped() |
downloadFile, downloadFiles, getCurrentFileName, getNumberOfLinesToProcess, getReadFileLine, getStatus, getStatusMessage, getTotalReadLine, process, resetStatus, rollback, setImporterConfig, setInternationalisationService
public String getDownloadDirectory()
getDownloadDirectory
in class AbstractFileRetriever
public String getDownloadBaseUrl()
getDownloadBaseUrl
in class AbstractFileRetriever
public void decompressFiles() throws IOException
AbstractFileRetriever
decompressFiles
in class AbstractFileRetriever
IOException
public boolean shouldBeSkipped()
shouldBeSkipped
in interface IImporterProcessor
shouldBeSkipped
in class AbstractFileRetriever
public File[] getFilesToDecompress() throws IOException
AbstractFileRetriever
getFilesToDecompress
in class AbstractFileRetriever
IOException
public boolean isFileNotFoundTolerant()
isFileNotFoundTolerant
in class AbstractFileRetriever
Copyright © 2015. All rights reserved.