|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.base.DSENotifier | +--com.ibm.dse.base.Service | +--com.ibm.dse.services.jfprint.JetFormService
The JetFormService class implements the interface for a print service using JetForm. It has two different ways of working: through named pipes (mode="pipe") or through files (mode="file").
Field Summary | |
static int |
COMPLETED_JOB
State of a job. |
static int |
ERROR
State of the printer. |
static int |
OK
State of the printer. |
static int |
PROCESSING_JOB
State of a job. |
static int |
RESET
State of the printer. |
Fields inherited from class com.ibm.dse.base.Service |
externalizer |
Fields inherited from class com.ibm.dse.base.DSENotifier |
handlersList,
name |
Constructor Summary | |
JetFormService()
This constructor creates a JetFormService object. |
Method Summary | |
java.util.Vector |
getJobListPrintingResults()
Returns a list with the information available for each job that has been sent to the printer. |
KeyedCollection |
getJobResult(long jobId)
Returns a keyed collection with all of the available information for a job, given its identifier. |
int |
getJobsCurrentlyProcessing()
Returns the number of jobs that have not yet been completed. |
int |
getStatus()
Returns the current status of the printer. |
void |
initialize()
Implements the initialize method of the PrintService API. |
java.lang.Object |
initializeFrom(Tag aTag)
Initializes a DiskFormsPrint object with the Tag attributes. |
boolean |
isJobCompleted(long aJobId)
Returns 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)
Performs the asynchronous print. |
void |
printFormAndWait(FormsRecordFormat aFormat,
Context aContext)
Performs the synchronous print. |
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 |
setFilePath(java.lang.String aFilePath)
Sets the file path attribute. |
void |
setFormName(java.lang.String aFormName)
Sets the compiledFormName property. |
void |
setMode(java.lang.String aMode)
Sets the mode attribute. |
void |
setPipeName(java.lang.String aName)
Sets the pipe name attribute. |
void |
setPrinterName(java.lang.String aPrinterName)
Sets the printerName property. |
void |
setServerName(java.lang.String aServerName)
Sets the serverName. |
void |
shutdown()
Shuts down the print service. |
java.lang.String |
toString()
Returns an SGML representation of this service. |
Methods inherited from class com.ibm.dse.base.Service |
externalizer,
getExternalizer,
getTagName,
readExternal,
readExternal,
readObject,
removeExternal,
setExternalizer,
terminate,
toStrings,
toTags,
writeExternal,
writeExternal |
Methods inherited from class com.ibm.dse.base.DSENotifier |
addHandler,
getHandlersList,
getName,
removeHandler,
setName,
signalEvent,
signalEvent,
signalEvent |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int ERROR
public static final int OK
public static final int RESET
public static final int PROCESSING_JOB
public static final int COMPLETED_JOB
Constructor Detail |
public JetFormService()
Method Detail |
public java.util.Vector getJobListPrintingResults()
public KeyedCollection getJobResult(long jobId) throws DSEJobNotFoundException
jobId
- long, the long that represents the job 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 java.lang.Object initializeFrom(Tag aTag) throws DSEInvalidArgumentException
aTag
- com.ibm.dse.base.Tag, the Tagpublic boolean isJobCompleted(long aJobId) 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 setFilePath(java.lang.String aFilePath)
aFilePath
- java.lang.String, the file path valuepublic void setFormName(java.lang.String aFormName)
aFormName
- java.lang.String, the compiled form namepublic void setMode(java.lang.String aMode)
aMode
- java.lang.String, the mode valuepublic void setPipeName(java.lang.String aName)
aName
- java.lang.String, the pipe name valuepublic 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()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |