X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Fnet%2FXMLRPC.java;fp=src%2Forg%2Fibex%2Fnet%2FXMLRPC.java;h=984d485fa00348e76f96bfeac2fcee21497c0a51;hb=f025bde8f77969b6e0d1aced7a3ef333a600e64e;hp=14aacb5704fcd199b4093cbd9f463974b84b3f88;hpb=222248ba3f050224a55b8457a3a6e4af0020c2fe;p=org.ibex.net.git
diff --git a/src/org/ibex/net/XMLRPC.java b/src/org/ibex/net/XMLRPC.java
index 14aacb5..984d485 100644
--- a/src/org/ibex/net/XMLRPC.java
+++ b/src/org/ibex/net/XMLRPC.java
@@ -98,7 +98,7 @@ public class XMLRPC extends JS {
case "string": objects.setElementAt(new String(content.getBuf(), 0, content.size()), objects.size() - 1);
case "double": objects.setElementAt(new Double(new String(content.getBuf(), 0, content.size())), objects.size() - 1);
case "base64":
- objects.setElementAt(new Stream.ByteArray(Base64.decode(new String(content.getBuf(), 0, content.size())),
+ objects.setElementAt(new Fountain.ByteArray(Base64.decode(new String(content.getBuf(), 0, content.size())),
null), objects.size() - 1);
case "name": objects.addElement(new String(content.getBuf(), 0, content.size()));
case "value": if ("".equals(objects.lastElement()))
@@ -207,10 +207,10 @@ public class XMLRPC extends JS {
sb.append(((Boolean)o).booleanValue() ? "1" : "0");
sb.append("\n");
- } else if (o instanceof Stream) {
+ } else if (o instanceof Fountain) {
try {
sb.append(" \n");
- InputStream is = ((Stream)o).getInputStream();
+ InputStream is = ((Fountain)o).getInputStream();
byte[] buf = new byte[54];
while(true) {
int numread = is.read(buf, 0, 54);
@@ -226,9 +226,9 @@ public class XMLRPC extends JS {
}
sb.append("\n \n");
} catch (IOException e) {
- if (Log.on) Log.info(this, "caught IOException while attempting to send a ByteStream via XML-RPC");
+ if (Log.on) Log.info(this, "caught IOException while attempting to send a Fountain via XML-RPC");
if (Log.on) Log.info(this, e);
- throw new JSExn("caught IOException while attempting to send a ByteStream via XML-RPC");
+ throw new JSExn("caught IOException while attempting to send a Fountain via XML-RPC");
}
} else if (o instanceof String) {
@@ -301,6 +301,7 @@ public class XMLRPC extends JS {
// Call Sequence //////////////////////////////////////////////////////////////////////////
+ /* FIXME this has been disabled to make XMLRPC usable without Scheduler
public final Object call(Object a0, Object a1, Object a2, Object[] rest, int nargs) throws JSExn {
JSArray args = new JSArray();
for(int i=0; i