Override ResourceInputStream::read() and ResourceInputStream::available() instead of implementing the natives they call
Allow creating overrides in native.js
Merge pull request #339 from marco-c/optimize_ResourceInputStream

Optimize ResourceInputStream