be.lassi.ui.log
Class CommandWriter
java.lang.Object
be.lassi.ui.log.CommandWriter
- All Implemented Interfaces:
- CommandsProcessor
public class CommandWriter
- extends java.lang.Object
- implements CommandsProcessor
Writes a textual representation of lanbox commands to a
file with given name.
Constructor Summary |
CommandWriter(java.lang.String filename)
Contructs a new instance. |
Method Summary |
void |
close()
Closes the file. |
void |
process(java.util.List<Command> commands)
Processes given lanbox commands. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandWriter
public CommandWriter(java.lang.String filename)
throws java.io.IOException
- Contructs a new instance.
- Parameters:
filename
- the name of the file
- Throws:
java.io.IOException
close
public void close()
- Closes the file.
process
public void process(java.util.List<Command> commands)
- Processes given lanbox commands.
- Specified by:
process
in interface CommandsProcessor
- Parameters:
commands
- the lanbox commands to be processed