Package com.netscape.cms.servlet.common
Class CMSFile
- java.lang.Object
-
- com.netscape.cms.servlet.common.CMSFile
-
- Direct Known Subclasses:
CMSTemplate
public class CMSFile extends java.lang.Object
CMSFile represents a file from the filesystem cached in memory- Version:
- $Revision$, $Date$
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
mAbsPath
protected byte[]
mContent
protected long
mLastAccess
protected long
mLastModified
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAbsPath()
byte[]
getContent()
long
getLastAccess()
long
getLastModified()
void
setLastAccess(long lastAccess)
java.lang.String
toString()
java.lang.String
toString(java.lang.String enc)
-
-
-
Constructor Detail
-
CMSFile
protected CMSFile()
-
CMSFile
public CMSFile(java.io.File file) throws java.io.IOException, EBaseException
- Throws:
java.io.IOException
EBaseException
-
-
Method Detail
-
getAbsPath
public java.lang.String getAbsPath()
-
getContent
public byte[] getContent()
-
getLastModified
public long getLastModified()
-
getLastAccess
public long getLastAccess()
-
setLastAccess
public void setLastAccess(long lastAccess)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toString
public java.lang.String toString(java.lang.String enc) throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
-
-