net.sf.clichart.main.cliserver
Class CliServer

java.lang.Object
  extended by net.sf.clichart.main.cliserver.CliServer

public class CliServer
extends java.lang.Object

A simple server that typically uses stdin/stdout or sockets to allow a client to interact with clichart.

Uses pretty much the same options (both short and long) as the CLI, and calls an ChartGenerator when asked to generate a chart.

Note that options are sticky from the last chart, unless 'clear' is called.

Author:
johnd

Constructor Summary
CliServer()
           
 
Method Summary
 void interact(java.io.InputStream stdin, java.io.PrintStream stdout)
          Interact with the caller via the stream-based protocol, until 'quit' is called or input stream is closed
 void setChartGenerator(ChartGenerator chartGenerator)
          Set the chart generator, for creating chart generators for generating all charts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CliServer

public CliServer()
Method Detail

setChartGenerator

public void setChartGenerator(ChartGenerator chartGenerator)
Set the chart generator, for creating chart generators for generating all charts


interact

public void interact(java.io.InputStream stdin,
                     java.io.PrintStream stdout)
Interact with the caller via the stream-based protocol, until 'quit' is called or input stream is closed

Parameters:
stdin -
stdout -