Package org.fcrepo.migration.foxml
Interface URLFetcher
-
- All Known Implementing Classes:
HttpClientURLFetcher
public interface URLFetcher
A simple abstraction around the functionality of reading content from a URL as an InputStream. Use of this interface allows for pluggable implementations and easier testing.- Author:
- mdurbin
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStreamgetContentAtUrl(URL url)get content from a url.
-
-
-
Method Detail
-
getContentAtUrl
InputStream getContentAtUrl(URL url) throws IOException
get content from a url.- Parameters:
url- the url- Returns:
- the content
- Throws:
IOException- IO exception
-
-