|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.io.DataOutputStream
com.bankframe.services.devices.MCADeviceProtocol
public class MCADeviceProtocol
This class wraps the message protocol creation
for a BankFrame MCA device. All subclassed device objects should subclass
com.bankframe.services.devices.MCADeviceProtocol
for generation of device-specific protocol messages.
Messages or commands which are transmitted to the physical device are created in the
subclassed MCADeviceProtocol
class.
This MCADeviceProtocol
class will contain a byte stream which can be
passed to the peripheral.
Constructor Summary | |
---|---|
MCADeviceProtocol(ByteArrayOutputStream buffer)
The MCADeviceProtocol object constructor. |
Method Summary | |
---|---|
static String |
dataToHexData(String theRawData)
Converts the String of raw binary data into a String of Hex numbers. |
static String |
getHexString(byte messageByte)
Converts the byte into a hex string. |
byte[] |
internalbuffer()
Returns the internal buffer's contents as a newly created array of bytes. |
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 |
---|
public MCADeviceProtocol(ByteArrayOutputStream buffer)
MCADeviceProtocol
object constructor.
buffer
- ByteArrayOutputStreamMethod Detail |
---|
public static String dataToHexData(String theRawData)
theRawData
- String The raw message.
public static String getHexString(byte messageByte)
messageByte
- The message byte.
public byte[] internalbuffer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |