org.simoes.lpd.command
Class CommandReportQueueStateShort

java.lang.Object
  extended byorg.simoes.lpd.command.CommandHandler
      extended byorg.simoes.lpd.command.CommandReportQueueStateShort

public class CommandReportQueueStateShort
extends CommandHandler

This class handles the Send queue state (short) Command in RFC1179. The RFC description is below:
5.3 03 - Send queue state (short)

+----+-------+----+------+----+
| 03 | Queue | SP | List | LF |
+----+-------+----+------+----+
Command code - 3
Operand 1 - Printer queue name
Other operands - User names or job numbers

If the user names or job numbers or both are supplied then only those jobs for those users or with those numbers will be sent. The response is an ASCII stream which describes the printer queue. The stream continues until the connection closes. Ends of lines are indicated with ASCII LF control characters. The lines may also contain ASCII HT control characters.

Author:
Chris Simoes

Field Summary
 
Fields inherited from class org.simoes.lpd.command.CommandHandler
command, is, os
 
Constructor Summary
CommandReportQueueStateShort(byte[] command, java.io.InputStream is, java.io.OutputStream os)
           
 
Method Summary
 void execute()
          Writes a breif text table that displays the current print jobs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandReportQueueStateShort

public CommandReportQueueStateShort(byte[] command,
                                    java.io.InputStream is,
                                    java.io.OutputStream os)
Method Detail

execute

public void execute()
             throws LPDException
Writes a breif text table that displays the current print jobs. This is invoked by the commands: lpq or lpstat. A queue name must be specified by the client.

Specified by:
execute in class CommandHandler
Throws:
LPDException - thrown when an error occurs