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.ObjectCMSFile represents a file from the filesystem cached in memory- Version:
- $Revision$, $Date$
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringmAbsPathprotected byte[]mContentprotected longmLastAccessprotected longmLastModified
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAbsPath()byte[]getContent()longgetLastAccess()longgetLastModified()voidsetLastAccess(long lastAccess)java.lang.StringtoString()java.lang.StringtoString(java.lang.String enc)
-
-
-
Constructor Detail
-
CMSFile
protected CMSFile()
-
CMSFile
public CMSFile(java.io.File file) throws java.io.IOException, EBaseException- Throws:
java.io.IOExceptionEBaseException
-
-
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:
toStringin classjava.lang.Object
-
toString
public java.lang.String toString(java.lang.String enc) throws java.io.UnsupportedEncodingException- Throws:
java.io.UnsupportedEncodingException
-
-