public static class NotCacheableException extends Exception { }
// streams are "sealed" by default to prevent accidental object leakage
- public void put(Object key, Object val) { }
private Cache getCache = new Cache(100, true);
protected JS _get(JS key) throws JSExn { return null; }
public final JS get(JS key) throws JSExn {
((KnownLength.KnownLengthInputStream)is).getLength() : 0;
callargs[0] = JSU.N(bytesDownloaded);
callargs[1] = JSU.N(len);
- callback.call(callargs);
+ callback.call(null, callargs);
} finally { callargs[0] = callargs[1] = null; }
return null;
} });