org.hecl.files
Class HeclStreamCmds

java.lang.Object
  extended by org.hecl.files.HeclStreamCmds
All Implemented Interfaces:
ClassCommand

public class HeclStreamCmds
extends java.lang.Object
implements ClassCommand

The HeclStreamCmds class implements command handlers for DataInputStream and DataOutputStream, which are handled as "class commands".

Version:
1.0
Author:
David N. Welton

Constructor Summary
HeclStreamCmds()
           
 
Method Summary
static void load(Interp interp)
           
 Thing method(Interp interp, ClassCommandInfo context, Thing[] argv)
          The method method takes an interpreter, a class information and an array of Things, performs some calculations, and returns a Thing which may be null.
static void unload(Interp interp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeclStreamCmds

public HeclStreamCmds()
Method Detail

method

public Thing method(Interp interp,
                    ClassCommandInfo context,
                    Thing[] argv)
             throws HeclException
Description copied from interface: ClassCommand
The method method takes an interpreter, a class information and an array of Things, performs some calculations, and returns a Thing which may be null. The interpreter calls this method when it detects an ObjectThing as first argument of a command on the script level and detects a command handler for the class of the value of the ObjectThing.

Specified by:
method in interface ClassCommand
Parameters:
interp - an Interp value
context - A reference to the ClassInfo> describing further details of th emethod.
argv - A Thing[] array holding the parameters for the method. The 0th element is the object, the 1st element is the method.
Throws:
HeclException - if an error occurs

load

public static void load(Interp interp)

unload

public static void unload(Interp interp)