git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
60c6ea6
)
JAL-3589 (old Platform) fix for Jalvew-JS/develop only.
author
BobHanson
<hansonr@stolaf.edu>
Tue, 7 Apr 2020 15:27:38 +0000
(10:27 -0500)
committer
BobHanson
<hansonr@stolaf.edu>
Tue, 7 Apr 2020 15:27:38 +0000
(10:27 -0500)
src/jalview/util/Platform.java
patch
|
blob
|
history
diff --git
a/src/jalview/util/Platform.java
b/src/jalview/util/Platform.java
index
ef509df
..
d6627c4
100644
(file)
--- a/
src/jalview/util/Platform.java
+++ b/
src/jalview/util/Platform.java
@@
-543,23
+543,22
@@
public class Platform
* @param is
* @param outFile
* @throws IOException
* @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
{
*/
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
{
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)
byte[] bb = new byte[32 * 1024];
int l;
while ((l = is.read(bb)) > 0)