com.toshiba.tgcsapi
Class TGCSMPOS4610MICR

java.lang.Object
  extended by com.toshiba.tgcsapi.TGCSMPOSDevice
      extended by com.toshiba.tgcsapi.TGCSMPOS4610MICR

public class TGCSMPOS4610MICR
extends TGCSMPOSDevice


Constructor Summary
TGCSMPOS4610MICR()
           
 
Method Summary
 void beginInsertion(int timeout)
          Initiate document insert on the printer.
 void beginRemoval(int timeout)
          Initiate the document removal from the DI station.
 void endInsertion()
          Terminate the document-wait command and proceed to initiate a MICR read.
 void endRemoval()
          Terminate the document removal process, else the DI station LED will continue to blink.
 java.lang.String getAccountNumber()
          Obtain the cached Account Number from the MICR read.
 java.lang.String getBankNumber()
          Obtain the cached Bank Number from the MICR read.
 int getCheckType()
          Obtain the cached Check Type from the MICR read.
 int getCountryCode()
          Obtain the cached Country Code from the MICR read.
 java.lang.String getEPC()
          Obtain the cached EPC from the MICR read.
 java.lang.String getRawData()
          Obtain the cached Raw Data from the MICR read.
 java.lang.String getSerialNumber()
          Obtain the cached Serial Number from the MICR read.
 java.lang.String getTransitNumber()
          Obtain the cached Transit Number from the MICR read.
 
Methods inherited from class com.toshiba.tgcsapi.TGCSMPOSDevice
addPOSEventListener, claim, clearInput, clearOutput, close, directIO, getClaimed, getDataEventEnabled, getDeviceEnabled, getDevices, getOutputID, getPhysicalDeviceName, getVersion, handleEvent, loadConfigurationFile, loadMICRExceptionFile, open, release, removePOSEventListener, setDataEventEnabled, setDeviceEnabled, unregisterAllEventHandlers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TGCSMPOS4610MICR

public TGCSMPOS4610MICR()
Method Detail

beginInsertion

public void beginInsertion(int timeout)
                    throws TGCSMPOSException
Initiate document insert on the printer. The printer's DI station LED will blink if there is no document present. It will continue to do so till a document is inserted. This method will return once a document is inserted.

Throws:
TGCSMPOSException

endInsertion

public void endInsertion()
                  throws TGCSMPOSException
Terminate the document-wait command and proceed to initiate a MICR read. This method will return after the command to read is sent and not wait for a result. Upon receiving data from the printer, the API will fire a DataEvent to the calling client. EnableDataEvent flag must be set to true for the DataEvent to be fired.

Throws:
TGCSMPOSException

beginRemoval

public void beginRemoval(int timeout)
                  throws TGCSMPOSException
Initiate the document removal from the DI station.

Throws:
TGCSMPOSException

endRemoval

public void endRemoval()
                throws TGCSMPOSException
Terminate the document removal process, else the DI station LED will continue to blink.

Throws:
TGCSMPOSException

getAccountNumber

public java.lang.String getAccountNumber()
                                  throws TGCSMPOSException
Obtain the cached Account Number from the MICR read. This is only valid after a DataEvent has been fired. For more information, refer to the UPOS Specification 1.13

Throws:
TGCSMPOSException

getBankNumber

public java.lang.String getBankNumber()
                               throws TGCSMPOSException
Obtain the cached Bank Number from the MICR read. This is only valid after a DataEvent has been fired. For more information, refer to the UPOS Specification 1.13

Throws:
TGCSMPOSException

getCheckType

public int getCheckType()
                 throws TGCSMPOSException
Obtain the cached Check Type from the MICR read. This is only valid after a DataEvent has been fired. For more information, refer to the UPOS Specification 1.13

Throws:
TGCSMPOSException

getCountryCode

public int getCountryCode()
                   throws TGCSMPOSException
Obtain the cached Country Code from the MICR read. This is only valid after a DataEvent has been fired. For more information, refer to the UPOS Specification 1.13

Throws:
TGCSMPOSException

getEPC

public java.lang.String getEPC()
                        throws TGCSMPOSException
Obtain the cached EPC from the MICR read. This is only valid after a DataEvent has been fired. For more information, refer to the UPOS Specification 1.13

Throws:
TGCSMPOSException

getRawData

public java.lang.String getRawData()
                            throws TGCSMPOSException
Obtain the cached Raw Data from the MICR read. This is only valid after a DataEvent has been fired. For more information, refer to the UPOS Specification 1.13

Throws:
TGCSMPOSException

getSerialNumber

public java.lang.String getSerialNumber()
                                 throws TGCSMPOSException
Obtain the cached Serial Number from the MICR read. This is only valid after a DataEvent has been fired. For more information, refer to the UPOS Specification 1.13

Throws:
TGCSMPOSException

getTransitNumber

public java.lang.String getTransitNumber()
                                  throws TGCSMPOSException
Obtain the cached Transit Number from the MICR read. This is only valid after a DataEvent has been fired. For more information, refer to the UPOS Specification 1.13

Throws:
TGCSMPOSException