org.onemind.jxp
Class ByteArrayPageSource

java.lang.Object
  extended by org.onemind.jxp.JxpPageSource
      extended by org.onemind.jxp.CachingPageSource
          extended by org.onemind.jxp.ByteArrayPageSource

public class ByteArrayPageSource
extends CachingPageSource


Field Summary
private  java.util.Map _buffers
           
 
Constructor Summary
ByteArrayPageSource()
           
 
Method Summary
protected  boolean hasStream(java.lang.String pageName)
          Whether there's input stream from given page name
protected  boolean isExpired(CachedJxpPage page)
          Whether a page is expired
protected  java.io.InputStream loadStream(CachedJxpPage page)
          Load the input stream for the page
protected  AstJxpDocument parseJxpDocument(JxpPage page)
           
 void putPageBuffer(java.lang.String id, byte[] buffer)
           
 
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
 

Field Detail

_buffers

private java.util.Map _buffers
Constructor Detail

ByteArrayPageSource

public ByteArrayPageSource()
Method Detail

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