+ if (val instanceof org.ibex.io.Fountain) {
+ Stream stream = ((org.ibex.io.Fountain)val).getStream();
+ Stream out = new Stream(null, new FileOutputStream(f2));
+ stream.transcribe(out);
+ out.close();
+ } else if (val instanceof JSPrimitive) {
+ OutputStream out = new FileOutputStream(f2);
+ Writer w = new OutputStreamWriter(out);
+ w.write(JSU.toString(val));
+ w.flush();
+ out.close();
+ } else {