try
{
// NOTE: THIS WILL FAIL IN SWINGJS BECAUSE IT INVOLVES A FILE READER
-
FileReader reader = new FileReader(idFileName);
String key = "";
Map<String, Object> obj = (Map<String, Object>) JSONUtils
}
} catch (IOException | ParseException e)
{
- // unnecessary e.printStackTrace();
- // Note how in JavaScript we can grab the first bytes from any file
- // reader.
- // Typical report here is "NetworkError" because the file does not exist.
- // "https://." is coming from System.getProperty("user.home"), but this
- // could
- // be set by the page developer to anything, of course.
errorMessage = e.toString();
idData.clear();
}