public static void streamToFile(InputStream is, File outFile)
throws IOException
{
- if (!isJS() || /**
- * @j2sNative outFile.setBytes$O && outFile.setBytes$O(is) ||
- */
- false)
+ if (isJS() && /**
+ * @j2sNative outFile.setBytes$O && outFile.setBytes$O(is) &&
+ */
+ true)
{
return;
}
}
}
+ /**
+ * Add a known domain that implements access-control-allow-origin:*
+ *
+ * These should be reviewed periodically.
+ *
+ * @param domain
+ * for a service that is not allowing ajax
+ *
+ * @author hansonr@stolaf.edu
+ *
+ */
+ public static void addJ2SDirectDatabaseCall(String domain)
+ {
+
+ System.out.println(
+ "Platform adding no-access-control-allow-origin domain "
+ + domain);
+
+ /**
+ * @j2sNative
+ *
+ * J2S.addDirectDatabaseCall(domain);
+ */
+ }
+
}