Package org.fcrepo.migration.foxml
Class URLCachedContent
- java.lang.Object
-
- org.fcrepo.migration.foxml.URLCachedContent
-
- All Implemented Interfaces:
CachedContent
public class URLCachedContent extends Object implements CachedContent
A CachedContent implementation that exposes content stored at a resolvable URL.- Author:
- mdurbin
-
-
Constructor Summary
Constructors Constructor Description URLCachedContent(URL url, URLFetcher fetcher)url cached content.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetInputStream()get input stream.URLgetURL()get URL.
-
-
-
Constructor Detail
-
URLCachedContent
public URLCachedContent(URL url, URLFetcher fetcher)
url cached content.- Parameters:
url- the urlfetcher- the fetcher
-
-
Method Detail
-
getInputStream
public InputStream getInputStream() throws IOException
Description copied from interface:CachedContentget input stream.- Specified by:
getInputStreamin interfaceCachedContent- Returns:
- the input stream
- Throws:
IOException- IO exception
-
-