com.netscape.cms.servlet.common
Class CMSFileLoader

java.lang.Object
  extended by com.netscape.cms.servlet.common.CMSFileLoader

public class CMSFileLoader
extends java.lang.Object

CMSFileLoader - file cache.

Version:
$Revision: 1211 $, $Date: 2010-08-18 10:15:37 -0700 (Wed, 18 Aug 2010) $

Field Summary
 int CLEAR_SIZE
           
 int MAX_SIZE
           
 java.lang.String PROP_CACHE_TEMPLATES_ONLY
           
 java.lang.String PROP_CLEAR_SIZE
           
 java.lang.String PROP_MAX_SIZE
           
 
Constructor Summary
CMSFileLoader()
           
 
Method Summary
 byte[] get(java.io.File file, java.lang.String enc)
           
 byte[] get(java.lang.String absPath, java.lang.String enc)
           
 CMSFile getCMSFile(java.io.File file, java.lang.String enc)
           
 void init(IConfigStore config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_SIZE

public final int MAX_SIZE
See Also:
Constant Field Values

CLEAR_SIZE

public final int CLEAR_SIZE
See Also:
Constant Field Values

PROP_MAX_SIZE

public final java.lang.String PROP_MAX_SIZE
See Also:
Constant Field Values

PROP_CLEAR_SIZE

public final java.lang.String PROP_CLEAR_SIZE
See Also:
Constant Field Values

PROP_CACHE_TEMPLATES_ONLY

public final java.lang.String PROP_CACHE_TEMPLATES_ONLY
See Also:
Constant Field Values
Constructor Detail

CMSFileLoader

public CMSFileLoader()
Method Detail

init

public void init(IConfigStore config)
          throws EBaseException
Throws:
EBaseException

get

public byte[] get(java.lang.String absPath,
                  java.lang.String enc)
           throws EBaseException,
                  java.io.IOException
Throws:
EBaseException
java.io.IOException

get

public byte[] get(java.io.File file,
                  java.lang.String enc)
           throws EBaseException,
                  java.io.IOException
Throws:
EBaseException
java.io.IOException

getCMSFile

public CMSFile getCMSFile(java.io.File file,
                          java.lang.String enc)
                   throws EBaseException,
                          java.io.IOException
Throws:
EBaseException
java.io.IOException