|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The PrintService interface provides the public methods to be used when working with any quality printing service.
Method Summary | |
java.util.Vector |
getJobListPrintingResults()
Returns a list with the information that is available for each of the jobs that have been sent to the printer. |
KeyedCollection |
getJobResult(long jobId)
Returns a keyed collection with all the available information for a job, given its identifier. |
int |
getJobsCurrentlyProcessing()
Returns the number of jobs that have not yet been completed. |
int |
getStatus()
Gives the current status of the printer. |
void |
initialize()
Initializes the printer device. |
boolean |
isJobCompleted(long jobId)
Answers true if the job with a given ID has already been printed. |
long |
printForm(FormsRecordFormat aFormat,
Context aContext)
Formats a context with a given format of type FormsRecordFormat and then performs the asynchronous print with the resulting String. |
long |
printForm(java.lang.String data)
Performs the asynchronous print. |
long |
printForm(java.lang.String aFormatName,
Context aContext)
Instantiates a FormsRecordFormat, given its name, and uses it to format a context. |
void |
printFormAndWait(FormsRecordFormat aFormat,
Context aContext)
Formats a context with a format of type FormsRecordFormat and then performs the synchronous print with the resulting String. |
void |
printFormAndWait(java.lang.String data)
Performs the synchronous print operation. |
void |
printFormAndWait(java.lang.String aFormatName,
Context aContext)
Instantiates a FormsRecordFormat, given its name, and uses it to format a context. |
void |
setFormName(java.lang.String aFormName)
Sets the form name. |
void |
setPrinterName(java.lang.String aPrinterName)
Sets the printer name. |
void |
setServerName(java.lang.String aServerName)
Sets the serverName. |
void |
shutdown()
Shuts down the print service, which means that no more jobs will be printed. |
Methods inherited from interface com.ibm.dse.base.Notifier |
addHandler,
getHandlersList,
getName,
removeHandler,
setName,
signalEvent,
signalEvent,
terminate |
Method Detail |
public java.util.Vector getJobListPrintingResults()
public KeyedCollection getJobResult(long jobId) throws DSEJobNotFoundException
jobId
- long, the long that represents the jod IDpublic int getJobsCurrentlyProcessing()
public int getStatus()
ERROR (-1): Printer has not been correctly initialized.
OK (0): Printer has been initialized.
RESET (1): The printer has been shutdown. This is the initial status of the printer.
public void initialize() throws DSEPrinterException
public boolean isJobCompleted(long jobId) throws DSEJobNotFoundException
jobId
- long, the long that represents the job ID about which we want to askpublic long printForm(FormsRecordFormat aFormat, Context aContext) throws DSEPrinterException, DSEException
aFormat
- com.ibm.dse.services.formsprint.FormsRecordFormat, the provided formataContext
- com.ibm.dse.base.Context, the context to be formatedpublic long printForm(java.lang.String data) throws DSEPrinterException
data
- java.lang.String, the data that must be sent to the printer devicepublic long printForm(java.lang.String aFormatName, Context aContext) throws DSEPrinterException, DSEException, java.io.IOException
aFormatName
- java.lang.String, the name of the FormsRecordFormat format to instantiateaContext
- com.ibm.dse.base.Context, the context to be formatedpublic void printFormAndWait(FormsRecordFormat aFormat, Context aContext) throws DSEPrinterException, DSEException
aFormat
- com.ibm.dse.services.formsprint.FormsRecordFormat, the provided formataContext
- com.ibm.dse.base.Context, the context to be formatedpublic void printFormAndWait(java.lang.String data) throws DSEPrinterException
data
- java.lang.String, the data that must be sent to the printer devicepublic void printFormAndWait(java.lang.String aFormatName, Context aContext) throws DSEPrinterException, DSEException, java.io.IOException
aFormatName
- java.lang.String, the name of the FormsRecordFormat format to instantiateaContext
- com.ibm.dse.base.Context, the context to be formatedpublic void setFormName(java.lang.String aFormName)
aFormName
- java.lang.String, the compiled form namepublic void setPrinterName(java.lang.String aPrinterName)
aPrinterName
- java.lang.String, the resource name of the printerpublic void setServerName(java.lang.String aServerName)
aServerName
- java.lang.String, the hostname of the quality printing serverpublic void shutdown()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |