Package com.netscape.cms.servlet.common
Class CMSFileLoader
- java.lang.Object
-
- com.netscape.cms.servlet.common.CMSFileLoader
-
public class CMSFileLoader extends java.lang.Object
CMSFileLoader - file cache.- Version:
- $Revision$, $Date$
-
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Constructor Description CMSFileLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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
-
-
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
-
-