01: /*
02: * @(#)init.java 1.2 04/12/06
03: *
04: * Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
05: *
06: * See the file "LICENSE.txt" for information on usage and redistribution
07: * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
08: */
09: package org.pnuts.java_io;
10:
11: import pnuts.lang.Context;
12: import pnuts.ext.ModuleBase;
13:
14: /**
15: * Initialization of the java.util module
16: */
17: public class init extends ModuleBase {
18:
19: static String[] classNames = { "File", "OutputStream",
20: "InputStream", "IOException", "Reader", "Writer" };
21:
22: public Object execute(Context context) {
23: for (int i = 0; i < classNames.length; i++) {
24: autoloadClass("java.io", classNames[i], context);
25: }
26: return null;
27: }
28: }
|