File tree 1 file changed +5
-1
lines changed
symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/reflection/system
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
package org .matheclipse .core .reflection .system ;
2
2
3
3
import java .awt .image .BufferedImage ;
4
+ import java .io .FileNotFoundException ;
4
5
import java .io .FileOutputStream ;
5
6
import java .io .FileWriter ;
6
7
import java .io .IOException ;
@@ -119,12 +120,15 @@ public IExpr evaluate(final IAST ast, EvalEngine engine) {
119
120
} else if (format .equals (Extension .DAT )) {
120
121
Files .writeString (Path .of (filename ), arg2 .toString (), Charset .defaultCharset ());
121
122
return arg1 ;
123
+ } else if (format .equals (Extension .MAT )) {
124
+ //
122
125
} else if (format .equals (Extension .WXF )) {
123
126
byte [] bArray = WL .serialize (arg2 );
124
127
Files .write (Path .of (filename ), bArray );
125
128
return arg1 ;
126
129
}
127
-
130
+ } catch (FileNotFoundException ex ) {
131
+ LOGGER .log (engine .getLogLevel (), "Export: file {}" , arg1 , ex );
128
132
} catch (IOException ioe ) {
129
133
LOGGER .log (engine .getLogLevel (), "Export: file {} not found!" , arg1 , ioe );
130
134
} catch (Exception ex ) {
You can’t perform that action at this time.
0 commit comments