net.larsan.urd.cmd
Class CmdWriterImpl

java.lang.Object
  |
  +--net.larsan.urd.cmd.CmdWriterImpl
All Implemented Interfaces:
CmdWriter

public class CmdWriterImpl
extends java.lang.Object
implements CmdWriter

A writer object for the command line server. This class uses canonical line breaks.

Version:
Alpha-0.1 / 2002-10-06 21:37
Author:
Lars J. Nilsson
See Also:
CmdWriter

Constructor Summary
CmdWriterImpl(java.nio.channels.SocketChannel channel)
           
 
Method Summary
 void commit()
          Commit result to output channel.
 void print(java.lang.String str)
          Write a string.
 void println()
          Write empty new line.
 void println(java.lang.String str)
          Write a string followed by a new line.
 void write(CmdTable table)
          Write a table to the output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmdWriterImpl

public CmdWriterImpl(java.nio.channels.SocketChannel channel)
Method Detail

print

public void print(java.lang.String str)
Write a string.

Specified by:
print in interface CmdWriter

println

public void println(java.lang.String str)
Write a string followed by a new line.

Specified by:
println in interface CmdWriter

println

public void println()
Write empty new line.

Specified by:
println in interface CmdWriter

commit

public void commit()
Commit result to output channel.

Specified by:
commit in interface CmdWriter

write

public void write(CmdTable table)
Write a table to the output. The table object must not return null on any of its accosser methods.

Specified by:
write in interface CmdWriter
Parameters:
table - Table to write, nust not be null