import java.util.zip.*;
import org.ibex.js.*;
import org.ibex.util.*;
-import org.xwt.translators.MSPack;
+import org.ibex.translators.MSPack;
/**
* Essentiall an InputStream "factory". You can repeatedly ask a
/** the Builtin resource */
public static class Builtin extends Stream {
- public Builtin() { };
public String getCacheKey() throws NotCacheableException { throw new NotCacheableException(); }
public InputStream getInputStream() throws IOException { return Platform.getBuiltinInputStream(); }
}
public int read(byte[] b, int off, int len) throws IOException {
int ret = super.read(b, off, len);
if (ret != 1) bytesDownloaded += ret;
- Scheduler.add(new Scheduler.Task() { public void perform() throws Exception {
+ Scheduler.add(new Scheduler.Task() { public void perform() throws IOException, JSExn {
callback.call(N(bytesDownloaded),
N(is instanceof KnownLength ? ((KnownLength)is).getLength() : 0), null, null, 2);
} });