Methods Summary |
---|
private native void | _dealloc(long ptr)
|
private native long | _init(long ptr)
|
private native void | _parseFile(long ptr, java.lang.String filename, boolean use_cb)
|
private native void | _parseStr(long ptr, java.lang.String content)
|
private native java.lang.String | _render(long ptr)
|
private native void | _setGlobalHdf(long csptr, long hdfptr)
|
public void | close()
if (csptr != 0) {
_dealloc(csptr);
csptr = 0;
}
|
protected java.lang.String | fileLoad(java.lang.String filename)
if (csptr == 0) {
throw new NullPointerException("CS is closed.");
}
CSFileLoader aFileLoader = fileLoader;
if (aFileLoader == null) {
throw new NullPointerException("No fileLoader specified.");
} else {
String result = aFileLoader.load(localHDF, filename);
if (result == null) {
throw new NullPointerException("CSFileLoader.load() returned null");
}
return result;
}
|
public void | finalize()
close();
|
public CSFileLoader | getFileLoader()Get the file loader in use, if any.
return fileLoader;
|
public HDF | getGlobalHDF()
return this.globalHDF;
|
public void | parseFile(java.lang.String filename)
if (csptr == 0) {
throw new NullPointerException("CS is closed.");
}
_parseFile(csptr, filename, fileLoader != null);
|
public void | parseStr(java.lang.String content)
if (csptr == 0) {
throw new NullPointerException("CS is closed.");
}
_parseStr(csptr,content);
|
public java.lang.String | render()
if (csptr == 0) {
throw new NullPointerException("CS is closed.");
}
return _render(csptr);
|
public void | setFileLoader(CSFileLoader fileLoader)Set the CS file loader to use
this.fileLoader = fileLoader;
|
public void | setGlobalHDF(HDF global)
_setGlobalHdf(csptr,global.hdfptr);
this.globalHDF = global;
|