Package org.fcrepo.migration.foxml
Class MemoryCachedContent
- java.lang.Object
-
- org.fcrepo.migration.foxml.MemoryCachedContent
-
- All Implemented Interfaces:
CachedContent
public class MemoryCachedContent extends Object implements CachedContent
A CachedContent implementation that stores the entirety of the content in memory as String.- Author:
- mdurbin
-
-
Constructor Summary
Constructors Constructor Description MemoryCachedContent(String content)memory cached content.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetInputStream()get input stream.
-
-
-
Constructor Detail
-
MemoryCachedContent
public MemoryCachedContent(String content)
memory cached content.- Parameters:
content- the content
-
-
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
-
-