2003/11/18 10:47:26
[org.ibex.core.git] / src / org / xwt / Res.java
index 0652e09..d35be09 100644 (file)
@@ -100,7 +100,7 @@ public abstract class Res extends JS {
         ByteArray(byte[] bytes, String cacheKey) { this.bytes = bytes; this.cacheKey = cacheKey; }
         public String getCacheKey() throws NotCacheableException { return cacheKey; }
         public InputStream getInputStream(String path) throws IOException {
-            if (!"".equals(path)) throw new JS.Exn("can't get subresources of a byte[] resource");
+            if (!"".equals(path)) throw new JSExn("can't get subresources of a byte[] resource");
             return new ByteArrayInputStream(bytes);
         }
     }
@@ -128,7 +128,7 @@ public abstract class Res extends JS {
             ZipInputStream zis = new ZipInputStream(pis);
             ZipEntry ze = zis.getNextEntry();
             while(ze != null && !ze.getName().equals(path)) ze = zis.getNextEntry();
-            if (ze == null) throw new JS.Exn("requested file (" + path + ") not found in archive");
+            if (ze == null) throw new JSExn("requested file (" + path + ") not found in archive");
             return new KnownLength.KnownLengthInputStream(zis, (int)ze.getSize());
         }
     }