X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2FStream.java;h=a7a3bb8c93e24bb76a1fe273d48214890c5d429d;hb=acbf688069a3aaabebb525dc9d35a5f79cb178ea;hp=d200ce07bdfb67eaadfca234f4c42c7a660ed6dc;hpb=3591b88b94a6bb378af3d4abe6eb5233ce583104;p=org.ibex.core.git diff --git a/src/org/ibex/Stream.java b/src/org/ibex/Stream.java index d200ce0..a7a3bb8 100644 --- a/src/org/ibex/Stream.java +++ b/src/org/ibex/Stream.java @@ -5,7 +5,7 @@ import java.io.*; 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 @@ -94,7 +94,6 @@ public abstract class Stream extends JS.Cloneable { /** 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(); } } @@ -117,7 +116,7 @@ public abstract class Stream extends JS.Cloneable { 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); } });