org.simoes.lpd.handler
Class PrinterHandler

java.lang.Object
  extended byorg.simoes.lpd.handler.PrinterHandler
All Implemented Interfaces:
HandlerInterface

public class PrinterHandler
extends java.lang.Object
implements HandlerInterface

Handles PrintJobs by writing them to the default Printer.

Author:
Chris Simoes

Constructor Summary
PrinterHandler()
           
 
Method Summary
 boolean process(PrintJob printJob)
          Writes the printJob to the default Printer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrinterHandler

public PrinterHandler()
Method Detail

process

public boolean process(PrintJob printJob)
Writes the printJob to the default Printer.

Specified by:
process in interface HandlerInterface
Parameters:
printJob - the PrintJob we are processing
Returns:
the result of our work, true for success or false for non-success