org.onemind.jxp
Class ByteArrayPageSource
java.lang.Object
org.onemind.jxp.JxpPageSource
org.onemind.jxp.CachingPageSource
org.onemind.jxp.ByteArrayPageSource
public class ByteArrayPageSource
- extends CachingPageSource
Field Summary |
private java.util.Map |
_buffers
|
Methods inherited from class org.onemind.jxp.CachingPageSource |
assignPageStaticVariable, declarePageStaticVariable, getEncoding, getErrorSource, getJxpDocument, getJxpPage, getPageStaticVariable, hasJxpPage, hasPageStaticVariable, invalidatePageCache, isCaching, isJxpPageCached, purgeStaticVariables, setCaching, setEncoding |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_buffers
private java.util.Map _buffers
ByteArrayPageSource
public ByteArrayPageSource()
parseJxpDocument
protected AstJxpDocument parseJxpDocument(JxpPage page)
throws JxpPageParseException
- Throws:
JxpPageParseException
putPageBuffer
public void putPageBuffer(java.lang.String id,
byte[] buffer)
isExpired
protected boolean isExpired(CachedJxpPage page)
- Description copied from class:
CachingPageSource
- Whether a page is expired
- Specified by:
isExpired
in class CachingPageSource
- Parameters:
page
- the page
- Returns:
- true if expired
hasStream
protected boolean hasStream(java.lang.String pageName)
- Description copied from class:
CachingPageSource
- Whether there's input stream from given page name
- Specified by:
hasStream
in class CachingPageSource
- Parameters:
pageName
- the page name
- Returns:
- true if has input stream
loadStream
protected java.io.InputStream loadStream(CachedJxpPage page)
throws java.io.IOException
- Description copied from class:
CachingPageSource
- Load the input stream for the page
- Specified by:
loadStream
in class CachingPageSource
- Returns:
- the input stream
- Throws:
java.io.IOException