Minor enhancements in java binding.
} catch (final Exception e) {
throw new Error(String.format(
"Error while loading '%s'",
- lib));
+ lib), e);
}
}
} while (progress);
.createTempFile("tinyspline", null);
tmp.deleteOnExit();
out = new java.io.FileOutputStream(tmp);
- final byte[] buffer = new byte[4096];
+ final byte[] buffer = new byte[16384];
int read = -1;
while((read = in.read(buffer)) != -1) {
out.write(buffer, 0, read);
return tmp;
} catch (final Exception e) {
throw new Error(String.format(
- "Error while copying resource '%s'", file));
+ "Error while copying resource '%s'",
+ file), e);
} finally {
closeQuietly(in);
closeQuietly(out);
} catch (Exception e) {
throw new Error(String.format(
"Error while loading properties file '%s'",
- file));
+ file), e);
} finally {
closeQuietly(is);
}
