org.apache.camel.component.printer
Class PrinterOperations

java.lang.Object
  extended by org.apache.camel.component.printer.PrinterOperations
All Implemented Interfaces:
PrinterOperationsInterface

public class PrinterOperations
extends Object
implements PrinterOperationsInterface


Constructor Summary
PrinterOperations()
           
PrinterOperations(PrintService printService, DocPrintJob job, DocFlavor flavor, PrintRequestAttributeSet printRequestAttributeSet)
           
 
Method Summary
 Doc getDoc()
           
 DocFlavor getFlavor()
           
 DocPrintJob getJob()
           
 PrintRequestAttributeSet getPrintRequestAttributeSet()
           
 PrintService getPrintService()
           
 void print(Doc doc)
          Prints the document.
 void print(Doc doc, int copies, boolean sendToPrinter, String mimeType)
           
 void setDoc(Doc doc)
           
 void setFlavor(DocFlavor flavor)
           
 void setJob(DocPrintJob job)
           
 void setPrintRequestAttributeSet(PrintRequestAttributeSet printRequestAttributeSet)
           
 void setPrintService(PrintService printService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrinterOperations

public PrinterOperations()
                  throws PrintException
Throws:
PrintException

PrinterOperations

public PrinterOperations(PrintService printService,
                         DocPrintJob job,
                         DocFlavor flavor,
                         PrintRequestAttributeSet printRequestAttributeSet)
                  throws PrintException
Throws:
PrintException
Method Detail

print

public void print(Doc doc,
                  int copies,
                  boolean sendToPrinter,
                  String mimeType)
           throws PrintException
Throws:
PrintException

print

public void print(Doc doc)
           throws PrintException
Description copied from interface: PrinterOperationsInterface
Prints the document.

Specified by:
print in interface PrinterOperationsInterface
Parameters:
doc - document to print
Throws:
PrintException - is thrown if printing failed

getPrintService

public PrintService getPrintService()

setPrintService

public void setPrintService(PrintService printService)

getJob

public DocPrintJob getJob()

setJob

public void setJob(DocPrintJob job)

getFlavor

public DocFlavor getFlavor()

setFlavor

public void setFlavor(DocFlavor flavor)

getPrintRequestAttributeSet

public PrintRequestAttributeSet getPrintRequestAttributeSet()

setPrintRequestAttributeSet

public void setPrintRequestAttributeSet(PrintRequestAttributeSet printRequestAttributeSet)

getDoc

public Doc getDoc()

setDoc

public void setDoc(Doc doc)


Apache CAMEL