|
IBM LANDP J/XFS Wrappers | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.landp.device.internal.LandpDeviceService | +--com.ibm.landp.device.LandpIBM4722PTR
This class implements the necessary functionality for the IBM 4722 PTR device. It extends the LandpDeviceService class and implements the rest of the methods, as well as those methods of the IJxfsPrinterService that actually perform printer operations.
At the first Beta level, this class only provides support for the printRawData mode of operation. There is no support for Forms based printing, or for use of the DF operation supplied by the LANDP Financial Printer Server. This class does not currently support the REMS support of the 4722 model 3. In addition there is no support for determining the paper status of the device. Before starting to write data to the printer the user must make sure that there is paper in the device.
Field Summary | |
static java.lang.String |
copyrightNotice
|
Fields inherited from class com.ibm.landp.device.internal.LandpDeviceService |
controls,
DESCRIPTION,
INTERNAL_TIMEOUT,
isShutdownActive,
landpServer,
localDeviceInfo,
logger,
openCount,
ORIGIN,
physicalDeviceDescription,
physicalDeviceName,
queue,
status,
subclass,
version |
Fields inherited from interface com.jxfs.service.IJxfsPrinterService |
JXFS_COPYRIGHT,
JXFS_VERSION_CONTROL |
Fields inherited from interface com.jxfs.forum.support.IQueueResponse |
JXFS_COPYRIGHT,
JXFS_VERSION_CONTROL |
Fields inherited from interface com.ibm.landp.device.internal.ptr.ILandpPrinterService |
copyrightNotice |
Fields inherited from interface com.jxfs.service.IJxfsBaseService |
JXFS_COPYRIGHT,
JXFS_VERSION_CONTROL |
Constructor Summary | |
LandpIBM4722PTR()
Default constructor. |
Method Summary | |
void |
cancel(int identification_id,
int control_id)
Attempts to cancel the operation identified by the identification ID. |
boolean |
cancelInternal()
Attempts to cancel an operation. |
boolean |
checkInternal()
Implemented just to keep the compiler happy |
boolean |
claim(int timeout,
int control_id)
Sets up a claim operation for a specific device control. |
void |
claimInternal(int control_id)
Simply logs the fact that the device has been claimed |
int |
close(int control_id)
Closes the device for the calling device control. |
void |
closeInternal(com.jxfs.forum.support.IJxfsServiceJob job)
Implements the operations necessary for a DC to close the device. |
int |
ctrlMedia(int mediaControl,
int control_id)
Asynchronous method to control a piece of media in the printer. |
com.jxfs.control.ptr.JxfsPtrCtrlMediaCapability |
getCtrlMediaCapability(int control_id)
Returns JxfsPtrCtrlMediaCapability object containing the media capabilities of the printer. |
com.jxfs.control.ptr.JxfsPtrExtentCapability |
getExtentCapability(int control_id)
Returns JxfsExtendCapability object containing the extent capabilities of the printer. |
int |
getFieldDescription(java.lang.String[] fieldNames,
java.lang.String formName,
int control_id)
Asynchronous method to get the description of a field(s). |
int |
getFormDescription(java.lang.String formName,
int control_id)
Asynchronous method to get the description of a form. |
int |
getFormList(int control_id)
Asynchronous method to get the forms this printer supports. |
com.jxfs.control.ptr.JxfsPtrFormsConfig |
getFormsConfig(int control_id)
Returns a JxfsPtrFormsConfig object. |
int |
getMediaDescription(java.lang.String mediaName,
int control_id)
Asynchronous method to get the description of a piece of media This method by default returns a JxfsException with JXFS_E_NOT_SUPPORTED. |
int |
getMediaList(int control_id)
Asynchronous method to get a list of media types available. |
com.jxfs.control.ptr.JxfsPtrStatus |
getPtrStatus(int control_id)
Returns object containing the current status of the printer. |
com.jxfs.control.ptr.JxfsPtrWriteFormCapability |
getWriteFormCapability(int control_id)
Returns the write form capability of the printer |
boolean |
isCompound(int controlID)
Checks to see if the device is compound. |
int |
mediaExtents(int control_id)
Asynchronous method to get the extends of the current media. |
int |
open(int control_id)
Opens the device for a device control to use. |
void |
openInternal(com.jxfs.forum.support.IJxfsServiceJob job)
Implements the operations necessary for a DC to open the device. |
int |
printForm(java.lang.String formName,
java.lang.String mediaName,
java.lang.String[] fieldWriteData,
int control_id)
Asynchronous method to print a form. |
int |
printRawData(byte[] rawData,
boolean inputData,
int control_id)
Asynchronous method to print a raw data stream. |
void |
printRawDataInternal(com.ibm.landp.device.internal.ptr.PrintRawDataJob job,
byte[] rawData,
boolean inputData)
This method prints a raw data stream to the printer. |
boolean |
release(int timeout,
int control_id)
Sets up a release operation for a specific device control. |
void |
releaseInternal(int control_id)
Simply logs the fact that the device claim has been released |
int |
resetPrinter(int control_id)
Asynchronous method to reset the printer. |
void |
resetPrinterInternal(com.ibm.landp.device.internal.ptr.ResetPrinterJob job)
Resets the printer by performing an OP with the 'R' flag set The following calls to LANDP are made in this method: OP - Open the printer. |
void |
setFormsConfig(com.jxfs.control.ptr.JxfsPtrFormsConfig formsConfig,
int control_id)
Sets the forms config |
Methods inherited from class com.ibm.landp.device.internal.LandpDeviceService |
checkShutdown,
connectionFailure,
deregisterControl,
directIO,
getDeviceFirmwareVersion,
getDeviceServiceVersion,
getFirmwareStatus,
getPhysicalDeviceDescription,
getPhysicalDeviceName,
getRepositoryFirmwareVersion,
getStatus,
initialize,
isPowerSaveModeSupported,
registerControl,
shutdown,
updateFirmware,
wakeUpFromPowerSave |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String copyrightNotice
Constructor Detail |
public LandpIBM4722PTR()
Method Detail |
public int open(int control_id) throws com.jxfs.events.JxfsException
control_id
- The control ID of the calling DC.public int close(int control_id) throws com.jxfs.events.JxfsException
control_id
- The control ID of the calling DC.public boolean claim(int timeout, int control_id) throws com.jxfs.events.JxfsException
timeout
- The amount of time in millis before stopping the claim attempt.control_id
- The control ID of the calling DC.public boolean release(int timeout, int control_id) throws com.jxfs.events.JxfsException
timeout
- The amount of time in millis before stopping the release attempt.control_id
- The control ID of the calling DC.public void cancel(int identification_id, int control_id) throws com.jxfs.events.JxfsException
identification_id
- The identification ID of the operation to be cancelled.control_id
- The control ID of the calling DC.public boolean isCompound(int controlID) throws com.jxfs.events.JxfsException
control_id
- The control ID of the calling DC.public com.jxfs.control.ptr.JxfsPtrCtrlMediaCapability getCtrlMediaCapability(int control_id) throws com.jxfs.events.JxfsException
control_id
- The control ID of the calling DCpublic com.jxfs.control.ptr.JxfsPtrExtentCapability getExtentCapability(int control_id) throws com.jxfs.events.JxfsException
control_id
- The control ID of the calling DCpublic com.jxfs.control.ptr.JxfsPtrFormsConfig getFormsConfig(int control_id) throws com.jxfs.events.JxfsException
control_id
- The control ID of the calling DCpublic void setFormsConfig(com.jxfs.control.ptr.JxfsPtrFormsConfig formsConfig, int control_id) throws com.jxfs.events.JxfsException
formsConfig
- The new forms configurationcontrol_id
- The control ID of the calling DCpublic com.jxfs.control.ptr.JxfsPtrStatus getPtrStatus(int control_id) throws com.jxfs.events.JxfsException
control_id
- Control ID of the calling DCpublic com.jxfs.control.ptr.JxfsPtrWriteFormCapability getWriteFormCapability(int control_id) throws com.jxfs.events.JxfsException
control_id
- The control ID of the calling DCpublic int ctrlMedia(int mediaControl, int control_id) throws com.jxfs.events.JxfsException
mediaControl
- Defines how the media should be handledcontrol_id
- The control ID of the calling DCpublic int getFormList(int control_id) throws com.jxfs.events.JxfsException
control_id
- The control ID of the calling DCpublic int mediaExtents(int control_id) throws com.jxfs.events.JxfsException
control_id
- The control ID of the calling DCpublic int getMediaList(int control_id) throws com.jxfs.events.JxfsException
control_id
- The control ID of the calling DCpublic int printForm(java.lang.String formName, java.lang.String mediaName, java.lang.String[] fieldWriteData, int control_id) throws com.jxfs.events.JxfsException
formName
- The name of the form to print onmediaName
- the media to print onfieldWrtieData
- The array of strings containing the field data to printcontrol_id
- The control ID of the calling DCpublic int printRawData(byte[] rawData, boolean inputData, int control_id) throws com.jxfs.events.JxfsException
rawData
- The data stream to pass to the printerinputData
- true if data is expected back from the printercontrol_id
- The control ID of the calling DCpublic int getFieldDescription(java.lang.String[] fieldNames, java.lang.String formName, int control_id) throws com.jxfs.events.JxfsException
fieldNames
- The name(s) of the field(s) to get descriptions forformName
- The name of the form that contains the fieldscontrol_id
- The control ID of the calling DCpublic int getFormDescription(java.lang.String formName, int control_id) throws com.jxfs.events.JxfsException
formName
- The name of the formcontrol_id
- The control ID of the calling DCpublic int getMediaDescription(java.lang.String mediaName, int control_id) throws com.jxfs.events.JxfsException
mediaName
- The name of the mediacontrol_id
- The control ID of the calling DCpublic int resetPrinter(int control_id) throws com.jxfs.events.JxfsException
control_id
- The control ID of the calling DCpublic void printRawDataInternal(com.ibm.landp.device.internal.ptr.PrintRawDataJob job, byte[] rawData, boolean inputData)
The following calls to LANDP are made in this method:
public void resetPrinterInternal(com.ibm.landp.device.internal.ptr.ResetPrinterJob job)
public boolean cancelInternal()
public boolean checkInternal()
public void openInternal(com.jxfs.forum.support.IJxfsServiceJob job) throws com.jxfs.events.JxfsException
job
- Object implementing the IJxfsServiceJob interfacepublic void closeInternal(com.jxfs.forum.support.IJxfsServiceJob job) throws com.jxfs.events.JxfsException
job
- Object implementing the IJxfsServiceJob interfacepublic void claimInternal(int control_id)
control_id
- The control ID of the calling DC.public void releaseInternal(int control_id)
control_id
- The control ID of the calling DC.
|
IBM LANDP J/XFS Wrappers | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |