public class GlintStreamPrinter
extends java.lang.Object
| Constructor and Description |
|---|
GlintStreamPrinter() |
| Modifier and Type | Method and Description |
|---|---|
void |
print(boolean interactive,
java.io.InputStream is,
javax.print.attribute.PrintRequestAttributeSet aset,
javax.print.event.PrintJobListener pjl)
Print API for printing a glint input stream.
|
void |
printNonInteractive(javax.print.PrintService ps,
com.elixirtech.glint.IEye eye,
javax.print.attribute.PrintRequestAttributeSet aset,
javax.print.event.PrintJobListener pjl)
Print API for printing a glint Eye object with no dialog.
|
void |
printNonInteractive(javax.print.PrintService ps,
java.io.InputStream is,
javax.print.attribute.PrintRequestAttributeSet aset,
javax.print.event.PrintJobListener pjl)
Print API for printing a glint input stream with no dialog.
|
void |
setPhysicalPageSize(java.awt.Dimension physicalPageSizeOrNull) |
void |
setTargetPrinters(java.lang.String[] printers)
Set the printer names that will be tried (in order) for non-interactive printing.
|
public void setTargetPrinters(java.lang.String[] printers)
printers - An array of printer names.public void setPhysicalPageSize(java.awt.Dimension physicalPageSizeOrNull)
public void print(boolean interactive,
java.io.InputStream is,
javax.print.attribute.PrintRequestAttributeSet aset,
javax.print.event.PrintJobListener pjl)
throws java.io.IOException,
javax.print.PrintException,
java.awt.print.PrinterException
interactive - Pass true to show a print dialog or false for silent printingis - Glint input stream - eg. byte array stream or file input streamaset - The desired print attributes (see J2SE(TM) Print Service API for the possible parameters)pjl - To monitor the status of the printer jobjava.io.IOException - An error reading the Glint streamjavax.print.PrintException - An exception has occurred in the print systemjava.awt.print.PrinterException - No print service found that matches the desired attributes.public void printNonInteractive(javax.print.PrintService ps,
java.io.InputStream is,
javax.print.attribute.PrintRequestAttributeSet aset,
javax.print.event.PrintJobListener pjl)
throws java.io.IOException,
javax.print.PrintException
ps - The Print service.is - Glint input stream - eg. byte array stream or file input streamaset - The desired print attributes (see J2SE(TM) Print Service API for the possible parameters)pjl - To monitor the status of the printer jobjava.io.IOException - An error reading the Glint streamjavax.print.PrintException - An exception has occurred in the print systempublic void printNonInteractive(javax.print.PrintService ps,
com.elixirtech.glint.IEye eye,
javax.print.attribute.PrintRequestAttributeSet aset,
javax.print.event.PrintJobListener pjl)
throws java.io.IOException,
javax.print.PrintException
ps - The Print service.eye - The IEye (glint) objectaset - The desired print attributes (see J2SE(TM) Print Service API for the possible parameters)pjl - To monitor the status of the printer jobjava.io.IOException - An error reading the Glint streamjavax.print.PrintException - An exception has occurred in the print system