Package com.digitalpebble.stormcrawler
Interface JSONResource
-
- All Known Implementing Classes:
CollectionTagger
,FastURLFilter
,JSoupFilters
,ParseFilters
,URLFilters
public interface JSONResource
Defines a generic behaviour for ParseFilters or URLFilters to load resources from a JSON file.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
getResourceFile()
default void
loadJSONResources()
Load the resources from the JSON file in the uber jarvoid
loadJSONResources(InputStream inputStream)
Load the resources from an input stream
-
-
-
Method Detail
-
getResourceFile
String getResourceFile()
- Returns:
- filename of the JSON resource
-
loadJSONResources
void loadJSONResources(InputStream inputStream) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
Load the resources from an input stream- Throws:
com.fasterxml.jackson.core.JsonParseException
com.fasterxml.jackson.databind.JsonMappingException
IOException
-
-