com.java4less.textprinter
Class PrinterFactory

java.lang.Object
  |
  +--com.java4less.textprinter.PrinterFactory

public class PrinterFactory
extends java.lang.Object

this class is used to get an instance of a printer by name.


Constructor Summary
PrinterFactory()
           
 
Method Summary
static TextPrinter getPrinter(java.lang.String name)
          get a printer instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrinterFactory

public PrinterFactory()
Method Detail

getPrinter

public static TextPrinter getPrinter(java.lang.String name)
get a printer instance. Supported names are: - IBM-PROPRINTER: Proprinters or compatible.
- EPSON-ESCP2: Epson Esc/P2 or compatible
- EPSON-ESCP: Epson Esc/P or compatible
- IBM-PPDS
- HP-PCL3: HP PCL 3 or compatible (also known as Laset Jet Plus Emulation.
- HP-PCL5: HP PCL 3 or compatible
- DIABLO
- PLAIN: for other printers.