net.sf.lpr.daemon.commands
Class PrintAnyWaitingJobs

java.lang.Object
  extended by net.sf.lpr.daemon.commands.spi.AbstractDaemonCommand
      extended by net.sf.lpr.daemon.commands.PrintAnyWaitingJobs
All Implemented Interfaces:
DaemonCommand

public class PrintAnyWaitingJobs
extends AbstractDaemonCommand
implements DaemonCommand

Request that the LPD server print any waiting jobs.

Author:
x_sid

Constructor Summary
PrintAnyWaitingJobs(java.io.PrintStream print, java.io.InputStream serverIn, java.lang.String queue)
          Construct the request to be made to the server for printing any waiting jobs.
 
Method Summary
protected  void printCommand(java.io.PrintStream print)
          This method needs to be implemented for the daemon command that actually sends the request to the LPD server.
 
Methods inherited from class net.sf.lpr.daemon.commands.spi.AbstractDaemonCommand
print
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.lpr.daemon.DaemonCommand
print
 

Constructor Detail

PrintAnyWaitingJobs

public PrintAnyWaitingJobs(java.io.PrintStream print,
                           java.io.InputStream serverIn,
                           java.lang.String queue)
Construct the request to be made to the server for printing any waiting jobs.

Parameters:
print - the stream that the request will be written to.
serverIn - the stream that the response from the server will be read from.
queue - the name of the queue that the jobs are on that it should be printed
Method Detail

printCommand

protected void printCommand(java.io.PrintStream print)
                     throws java.io.IOException
Description copied from class: AbstractDaemonCommand
This method needs to be implemented for the daemon command that actually sends the request to the LPD server. There is no need to check the response from the server because that is handled by the code in the implemented print() method

Specified by:
printCommand in class AbstractDaemonCommand
Throws:
java.io.IOException