neosim.util
Class FileLoader

java.lang.Object
  |
  +--neosim.util.FileLoader

public class FileLoader
extends java.lang.Object
implements Filecmds, java.lang.Runnable

FileLoader Converts ascii file from URL to FileEventListener format


Fields inherited from interface neosim.util.Filecmds
EOF, LINE, START
 
Constructor Summary
FileLoader(java.lang.String urlName)
          Create a file loader with the given url
 
Method Summary
 void addFileListener(FileListener l)
          Javabeans file event output
 void forwardFile(FileEventObject e)
          Sends file event onwards to any listeners
protected  java.lang.String nextLine(java.io.BufferedReader r)
           
 void removeFileListener(FileListener l)
          Javabeans file event output
 void run()
          Starts reading the trace in from the URL.
 void startLoading()
          Called after output has been wired
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileLoader

public FileLoader(java.lang.String urlName)
Create a file loader with the given url
Method Detail

startLoading

public void startLoading()
Called after output has been wired

nextLine

protected java.lang.String nextLine(java.io.BufferedReader r)

run

public void run()
Starts reading the trace in from the URL.
Specified by:
run in interface java.lang.Runnable

addFileListener

public void addFileListener(FileListener l)
Javabeans file event output

removeFileListener

public void removeFileListener(FileListener l)
Javabeans file event output

forwardFile

public void forwardFile(FileEventObject e)
Sends file event onwards to any listeners