org.simoes.lpd.handler
Class FileHandler

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

public class FileHandler
extends java.lang.Object
implements HandlerInterface

Handles PrintJobs by writing them to File.

Author:
Chris Simoes

Constructor Summary
FileHandler()
           
 
Method Summary
 boolean process(PrintJob printJob)
          Writes the printJob to disk using the jobName and jobId.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileHandler

public FileHandler()
Method Detail

process

public boolean process(PrintJob printJob)
Writes the printJob to disk using the jobName and jobId.

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