neosim.util
Class FileEventObject

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--neosim.util.FileEventObject

public class FileEventObject
extends java.util.EventObject
implements Filecmds

File event object This stores a single line of a file.

See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Fields inherited from interface neosim.util.Filecmds
EOF, LINE, START
 
Constructor Summary
FileEventObject(java.lang.Object o, FileEventObject t)
          Creates a file event object from another
FileEventObject(java.lang.Object o, int cmd)
          Creates a file event command
FileEventObject(java.lang.Object o, java.lang.String line)
          Creates a file event object with a string
 
Method Summary
 int getCmd()
          Returns the command
 java.lang.String getLine()
          Returns the file line
 void set(FileEventObject t)
          Sets this command to a file object
 void set(int cmd)
          Sets this command to one of the file commands
 void set(java.lang.String line)
          Sets this command to a string
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileEventObject

public FileEventObject(java.lang.Object o,
                       java.lang.String line)
Creates a file event object with a string

FileEventObject

public FileEventObject(java.lang.Object o,
                       FileEventObject t)
Creates a file event object from another

FileEventObject

public FileEventObject(java.lang.Object o,
                       int cmd)
Creates a file event command
Method Detail

set

public void set(java.lang.String line)
Sets this command to a string

set

public void set(FileEventObject t)
Sets this command to a file object

set

public void set(int cmd)
Sets this command to one of the file commands

getLine

public java.lang.String getLine()
Returns the file line

getCmd

public int getCmd()
Returns the command