| Constructor and Description |
|---|
ContentCache(ResourceNode config)
Constructor for ContentCache.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
cacheAndReturn(String id,
InputStream is)
cacheAndReturn.
|
void |
doCache(String id,
InputStream is)
doCache.
|
InputStream |
getCached(String id)
getCached.
|
boolean |
isCached(String id)
isCached.
|
base, base, createBase, forkBase, installBase, isBase, leaveBase, toStringpublic ContentCache(ResourceNode config) throws MException
Constructor for ContentCache.
config - a ResourceNode object.MException - if any.public boolean isCached(String id)
isCached.
id - a String object.public InputStream cacheAndReturn(String id, InputStream is) throws IOException
cacheAndReturn.
id - a String object.is - a InputStream object.InputStream object.IOException - if any.public void doCache(String id, InputStream is) throws IOException
doCache.
id - a String object.is - a InputStream object.IOException - if any.public InputStream getCached(String id) throws FileNotFoundException
getCached.
id - a String object.InputStream object.FileNotFoundException - if any.Copyright © 2016. All Rights Reserved.