|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.clearsilver.jni.JniCs
public class JniCs
JNI implementation of the CS interface.
Field Summary | |
---|---|
protected JniHdf |
globalHDF
|
protected JniHdf |
localHDF
|
Method Summary | |
---|---|
void |
close()
Clean up CS object state. |
protected String |
fileLoad(String filename)
|
protected void |
finalize()
|
CSFileLoader |
getFileLoader()
Get the file loader in use, if any. |
HDF |
getGlobalHDF()
Return global hdf in use |
void |
parseFile(String filename)
Parses the specified file as if it has template content. |
void |
parseStr(String content)
Parse the given string as a CS template. |
String |
render()
Generate output from the CS templates and HDF objects that have been read in. |
void |
setFileLoader(CSFileLoader fileLoader)
Set the CS file loader to use |
void |
setGlobalHDF(HDF global)
Specify a new/different global HDF |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JniHdf globalHDF
protected JniHdf localHDF
Method Detail |
---|
public void setGlobalHDF(HDF global)
CS
setGlobalHDF
in interface CS
public HDF getGlobalHDF()
CS
getGlobalHDF
in interface CS
public void close()
CS
close
in interface Closeable
close
in interface CS
protected void finalize()
finalize
in class Object
public void parseFile(String filename) throws IOException
parseFile
in interface CS
filename
- the name of file to read in and parse.
FileNotFoundException
- if the specified file does not
exist.
IOException
- other problems reading the file.public void parseStr(String content)
CS
parseStr
in interface CS
content
- string to parse.public String render()
CS
render
in interface CS
protected String fileLoad(String filename) throws IOException, FileNotFoundException
IOException
FileNotFoundException
public CSFileLoader getFileLoader()
getFileLoader
in interface CS
public void setFileLoader(CSFileLoader fileLoader)
setFileLoader
in interface CS
fileLoader
- the file loader that should be used.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |