2003/06/18 07:38:54
[org.ibex.core.git] / src / org / xwt / ByteStream.java
index f1e6fcb..ced9378 100644 (file)
@@ -20,7 +20,7 @@ public class ByteStream extends JS.Obj {
     public String toString() { return "ByteStream, source=" + (file == null ? "memory" : file.getAbsolutePath()); }
 
     public Object get(Object name) {
-       if (name.equals("getUTF")) return getUTF;
+        if (name.equals("getUTF")) return getUTF;
         else if (name.equals("getDOM")) return getDOM;
         else if (name.equals("fileName")) return file == null ? null : file.getAbsolutePath();
         else return null;
@@ -102,14 +102,14 @@ public class ByteStream extends JS.Obj {
     }
 
     private final JS.Callable getDOM = new JS.Callable() {
-            public Object call(Array args) throws JS.Exn {
+            public Object call(JS.Array args) throws JS.Exn {
                 if (args.length() != 0) return null;
                 return new XMLHelper().doParse();
             }
         };
 
     private final JS.Callable getUTF = new JS.Callable() {
-            public Object call(Array args) throws JS.Exn {
+            public Object call(JS.Array args) throws JS.Exn {
                 if (args.length() != 0) return null;
                 try {
                     CharArrayWriter caw = new CharArrayWriter();