public class SimpleCkanFetcher extends Object implements Fetcher
Modifier and Type | Field and Description |
---|---|
protected boolean |
checkForUriType |
static String |
CKAN_JSON_OBJECT_MIME_TYPE |
protected File |
dataDirectory |
private static org.slf4j.Logger |
LOGGER |
protected com.fasterxml.jackson.databind.ObjectMapper |
mapper |
static byte |
NEWLINE_CHAR |
Constructor and Description |
---|
SimpleCkanFetcher() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
File |
fetch(org.dice_research.squirrel.data.uri.CrawleableUri uri,
Delayer delayer)
|
protected void |
fetchDataset(eu.trentorise.opendata.jackan.CkanClient client,
String dataset,
OutputStream out) |
File |
getDataDirectory() |
boolean |
isCheckForUriType() |
void |
setCheckForUriType(boolean checkForUriType) |
void |
setDataDirectory(File dataDirectory) |
private static final org.slf4j.Logger LOGGER
public static final String CKAN_JSON_OBJECT_MIME_TYPE
public static final byte NEWLINE_CHAR
protected boolean checkForUriType
protected File dataDirectory
protected com.fasterxml.jackson.databind.ObjectMapper mapper
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public File fetch(org.dice_research.squirrel.data.uri.CrawleableUri uri, Delayer delayer)
Fetcher
protected void fetchDataset(eu.trentorise.opendata.jackan.CkanClient client, String dataset, OutputStream out)
public boolean isCheckForUriType()
public void setCheckForUriType(boolean checkForUriType)
checkForUriType
- the checkForUriType to setpublic File getDataDirectory()
public void setDataDirectory(File dataDirectory)
dataDirectory
- the dataDirectory to setCopyright © 2017–2020. All rights reserved.