{
if (sourceType == DataSourceType.FILE)
{
- in = FileLoader.getBuffereReader(file);
+ in = FileLoader.getBufferedReader(file);
}
else if (sourceType == DataSourceType.URL)
{
* @throws FileNotFoundException
*/
@SuppressWarnings("unused")
- public static BufferedReader getBuffereReader(Object file) throws FileNotFoundException {
+ public static BufferedReader getBufferedReader(Object file) throws FileNotFoundException {
if (file instanceof String)
{
return new BufferedReader(new FileReader((String) file));
public boolean isResolvable()
{
return super.isResolvable() && mp.getTo() != null;
- };
+ }
@Override
boolean resolve()
} catch (Exception foo)
{
}
- ;
jout.close();
} catch (Exception ex)
{
} catch (Exception foo)
{
}
- ;
jout.close();
boolean success = true;
public void run()
{
setLoadingFinishedForNewStructureViewers();
- };
+ }
});
} catch (Exception x)
{
// BH 2018 allow for bytes already attached to File object
try {
String file = (ofile instanceof File ? ((File) ofile).getCanonicalPath() : ofile.toString());
- byte[] bytes = Platform.getFileBytes((File) ofile);
+ byte[] bytes = Platform.isJS() ? Platform.getFileBytes((File) ofile)
+ : null;
URL url = null;
errorMessage = null;
uniqueSetSuffix = null;