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 |
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 |
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
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