[Mathlib-commitlog] SF.net SVN: mathlib:[579] JMathLib/trunk/src/jmathlib/core/functions/ WebFuncti
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2008-12-29 20:58:15
|
Revision: 579
http://mathlib.svn.sourceforge.net/mathlib/?rev=579&view=rev
Author: st_mueller
Date: 2008-12-29 20:58:12 +0000 (Mon, 29 Dec 2008)
Log Message:
-----------
new structure/file for loading m-files/class-files from an applet
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/core/functions/WebFunctionLoader.java
Modified: JMathLib/trunk/src/jmathlib/core/functions/WebFunctionLoader.java
===================================================================
--- JMathLib/trunk/src/jmathlib/core/functions/WebFunctionLoader.java 2008-12-29 20:51:39 UTC (rev 578)
+++ JMathLib/trunk/src/jmathlib/core/functions/WebFunctionLoader.java 2008-12-29 20:58:12 UTC (rev 579)
@@ -16,7 +16,7 @@
boolean pFileCachingEnabledB = false;
private URL codeBase;
private String directory;
- private Vector pathV = new Vector(30); // paths to external function for applet usage
+ private Vector functionListV = new Vector(30); // paths to external function for applet usage
/**Default constructor*/
@@ -36,7 +36,7 @@
while ((line = br.readLine()) != null) {
System.out.println("read =" + line);
if (!line.startsWith("#")) {
- pathV.addElement(line);
+ functionListV.addElement(line);
//functionLoaders.add(new MFileWebLoader(applet.getCodeBase(), line));
}
}
@@ -77,11 +77,11 @@
String functionPath = null;
// Search filelist for wanted function
- for (int i=0; i<pathV.size(); i++)
+ for (int i=0; i<functionListV.size(); i++)
{
// The searchstring is set to "/foo.class" to avoid matches
// of substring of some other function like "barfoo.class"
- functionPath = ((String)pathV.elementAt(i));
+ functionPath = ((String)functionListV.elementAt(i));
// !! Remark: the command toLowerCase() is necessary, because some filenames have upper case letters (e.g. Disp.class)
if ( functionPath.toLowerCase().endsWith("/"+functionName+".class") )
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|