com.bankframe.services.devices.MTMiniMicr
Class MagTekMiniMicrDeviceProtocol

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--java.io.FilterOutputStream
              |
              +--java.io.DataOutputStream
                    |
                    +--com.bankframe.services.devices.MCADeviceProtocol
                          |
                          +--com.bankframe.services.devices.MTMiniMicr.MagTekMiniMicrDeviceProtocol
All Implemented Interfaces:
java.io.DataOutput, MagTekMiniMicrDeviceCodes, java.io.Serializable

public class MagTekMiniMicrDeviceProtocol
extends MCADeviceProtocol
implements MagTekMiniMicrDeviceCodes

This class produces messages and commands for sending to a MagTek MiniMicr check reading device using the serial port output stream.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.bankframe.services.devices.MTMiniMicr.MagTekMiniMicrDeviceCodes
BAUD_1200, BAUD_19200, BAUD_2400, BAUD_300, BAUD_4800, BAUD_600, BAUD_9600, COMM_MODE_0, COMM_MODE_1, COMM_MODE_2, COMM_MODE_3, COMM_MODE_4, COMM_MODE_5, COMM_MODE_6, COMM_MODE_7, CR, CR_NO, CR_YES, CTS_DSR_IGNORE, CTS_DSR_USE, DATAPARITY_7E, DATAPARITY_7M, DATAPARITY_7O, DATAPARITY_8N, ESC, ESC_NO, ESC_YES, ETX, ETX_NO, ETX_YES, FC, HW, IDCARD_DECODING_DISABLE, IDCARD_DECODING_ENABLE, INTERCHAR_DELAY_NO, INTERCHAR_DELAY_YES, LF, LF_NO, LF_YES, RS, SA, SEND_DATA_AFTER_ERROR_NO, SEND_DATA_AFTER_ERROR_YES, SEND_STATUS_AFTER_DATA_NO, SEND_STATUS_AFTER_DATA_YES, STOPBITS_1, STOPBITS_2, STX, STX_NO, STX_YES, SWA, SWB, SWC, TRACK1_DISABLE, TRACK1_ENABLE, TRACK2_DISABLE, TRACK2_ENABLE, TRACK3_DISABLE, TRACK3_ENABLE, VR
 
Constructor Summary
MagTekMiniMicrDeviceProtocol(java.io.ByteArrayOutputStream buffer)
          MagTekMiniMicrDeviceProtocol constructor
 
Method Summary
static java.lang.String byteToStringRep(byte data)
          This method converts the bits of this byte (data) into individual ASCII characters 0's or 1's, Most Significant bit first.
static java.lang.String getControlChars(byte messageByte)
          This method converts the byte into the equivalent MiniMicr text message.
static byte[] requestCommand(java.lang.String commandName)
          This method Creates the byte stream to send the request command to the MiniMicr device
static byte[] setCommand(java.lang.String commandName)
          This method creates the byte stream to send the set command to the MiniMicr device
static byte[] setCommand(java.lang.String commandName, byte commandByte)
          Creates the byte stream to send the set command to the MiniMicr device
 
Methods inherited from class com.bankframe.services.devices.MCADeviceProtocol
dataToHexData, getHexString, internalbuffer
 
Methods inherited from class java.io.DataOutputStream
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 
Methods inherited from class java.io.FilterOutputStream
close, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.io.DataOutput
write
 

Constructor Detail

MagTekMiniMicrDeviceProtocol

public MagTekMiniMicrDeviceProtocol(java.io.ByteArrayOutputStream buffer)
MagTekMiniMicrDeviceProtocol constructor

Parameters:
buffer - The byte array buffer to use
Method Detail

byteToStringRep

public static java.lang.String byteToStringRep(byte data)
                                        throws java.io.IOException
This method converts the bits of this byte (data) into individual ASCII characters 0's or 1's, Most Significant bit first.

Returns:
the byte as a String of 1's and 0's
java.io.IOException

getControlChars

public static java.lang.String getControlChars(byte messageByte)
This method converts the byte into the equivalent MiniMicr text message. If the byte value isn't a MiniMicr message it is shown as hex text.

Parameters:
messageByte -
Returns:
String message

requestCommand

public static byte[] requestCommand(java.lang.String commandName)
                             throws java.io.IOException
This method Creates the byte stream to send the request command to the MiniMicr device

Returns:
byte[]
Throws:
java.io.IOException

setCommand

public static byte[] setCommand(java.lang.String commandName)
                         throws java.io.IOException
This method creates the byte stream to send the set command to the MiniMicr device

Returns:
byte[]
Throws:
java.io.IOException

setCommand

public static byte[] setCommand(java.lang.String commandName,
                                byte commandByte)
                         throws java.io.IOException
Creates the byte stream to send the set command to the MiniMicr device

Returns:
byte[]
Throws:
java.io.IOException


Copyright © 2005 Siebel Systems, Inc. All rights reserved.