public class JniCs extends Object implements CS
| Modifier and Type | Field and Description |
|---|---|
protected JniHdf |
globalHDF |
protected JniHdf |
localHDF |
| Modifier and Type | Method and Description |
|---|---|
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
|
public void setGlobalHDF(HDF global)
CSsetGlobalHDF in interface CSpublic HDF getGlobalHDF()
CSgetGlobalHDF in interface CSpublic void close()
CSpublic void parseFile(String filename) throws IOException
parseFile in interface CSfilename - 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)
CSpublic String render()
CSprotected String fileLoad(String filename) throws IOException, FileNotFoundException
IOExceptionFileNotFoundExceptionpublic CSFileLoader getFileLoader()
getFileLoader in interface CSpublic void setFileLoader(CSFileLoader fileLoader)
setFileLoader in interface CSfileLoader - the file loader that should be used.Copyright © 2010-2012 Google. All Rights Reserved.