Class GeoNamesFileExtractor
java.lang.Object
org.codice.ddf.spatial.geocoding.extract.GeoNamesFileExtractor
- All Implemented Interfaces:
org.codice.ddf.spatial.geocoding.GeoEntryExtractor
public class GeoNamesFileExtractor
extends Object
implements org.codice.ddf.spatial.geocoding.GeoEntryExtractor
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.codice.ddf.spatial.geocoding.GeoEntryExtractor
org.codice.ddf.spatial.geocoding.GeoEntryExtractor.ExtractionCallback -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidjavax.ws.rs.core.ResponsecreateConnection(String resource) List<org.codice.ddf.spatial.geocoding.GeoEntry>getGeoEntries(String resource, org.codice.ddf.spatial.geocoding.ProgressCallback progressCallback) voidpushGeoEntriesToExtractionCallback(String resource, org.codice.ddf.spatial.geocoding.GeoEntryExtractor.ExtractionCallback extractionCallback) voidsetGeoEntryCreator(org.codice.ddf.spatial.geocoding.GeoEntryCreator geoEntryCreator) void
-
Constructor Details
-
GeoNamesFileExtractor
public GeoNamesFileExtractor()
-
-
Method Details
-
setGeoEntryCreator
public void setGeoEntryCreator(org.codice.ddf.spatial.geocoding.GeoEntryCreator geoEntryCreator) -
setUrl
- Specified by:
setUrlin interfaceorg.codice.ddf.spatial.geocoding.GeoEntryExtractor
-
getGeoEntries
public List<org.codice.ddf.spatial.geocoding.GeoEntry> getGeoEntries(String resource, org.codice.ddf.spatial.geocoding.ProgressCallback progressCallback) throws org.codice.ddf.spatial.geocoding.GeoEntryExtractionException, org.codice.ddf.spatial.geocoding.GeoNamesRemoteDownloadException - Specified by:
getGeoEntriesin interfaceorg.codice.ddf.spatial.geocoding.GeoEntryExtractor- Throws:
org.codice.ddf.spatial.geocoding.GeoEntryExtractionExceptionorg.codice.ddf.spatial.geocoding.GeoNamesRemoteDownloadException
-
pushGeoEntriesToExtractionCallback
public void pushGeoEntriesToExtractionCallback(String resource, org.codice.ddf.spatial.geocoding.GeoEntryExtractor.ExtractionCallback extractionCallback) throws org.codice.ddf.spatial.geocoding.GeoEntryExtractionException, org.codice.ddf.spatial.geocoding.GeoNamesRemoteDownloadException - Specified by:
pushGeoEntriesToExtractionCallbackin interfaceorg.codice.ddf.spatial.geocoding.GeoEntryExtractor- Throws:
org.codice.ddf.spatial.geocoding.GeoEntryExtractionExceptionorg.codice.ddf.spatial.geocoding.GeoNamesRemoteDownloadException
-
createConnection
-
getUrlInputStreamFromWebClient
public InputStream getUrlInputStreamFromWebClient() throws org.codice.ddf.spatial.geocoding.GeoNamesRemoteDownloadException- Throws:
org.codice.ddf.spatial.geocoding.GeoNamesRemoteDownloadException
-
closeConnection
public void closeConnection()
-