2003/09/19 05:26:46
[org.ibex.core.git] / src / org / xwt / ByteStream.java
index f1e6fcb..69acc89 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2002 Adam Megacz, see the COPYING file for licensing [GPL]
+// Copyright 2003 Adam Megacz, see the COPYING file for licensing [GPL]
 
 package org.xwt;
 import java.io.*;
@@ -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();