* @param is
* @param outFile
* @throws IOException
- * if the file cannot be created or there is a problem reading the
- * input stream.
+ * if the file cannot be created or there is a problem
+ * reading the input stream.
*/
public static void streamToFile(InputStream is, File outFile)
throws IOException
{
+ if (isJS() && /**
+ * @j2sNative outFile.setBytes$O && outFile.setBytes$O(is) &&
+ */
+ true)
+ {
+ return;
+ }
FileOutputStream fio = new FileOutputStream(outFile);
try
{
- if (isJS()
- && /**
- * @j2sNative outFile.setBytes$O && outFile.setBytes$O(is) &&
- */
- true)
- {
- return;
- }
byte[] bb = new byte[32 * 1024];
int l;
while ((l = is.read(bb)) > 0)