|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.OutputStream java.io.FilterOutputStream java.io.DataOutputStream com.bankframe.services.devices.MCADeviceProtocol com.bankframe.services.devices.SlipPrinter.SlipPrinterProtocol
This class produces messages and codes for sending to a slip-printer using the serial port output stream
Field Summary |
Fields inherited from interface com.bankframe.services.devices.SlipPrinter.SlipPrinterCodes |
AddNExtraDotRows, CarriageReturn, ClearPrinter, CloseForm, FeedNDotRows, FeedNPrintLines, FullKnifeCut, GenerateTone, HorizontalTab, InitializePrinter, LineFeed, OpenFormSlipStation, PartialKnifeCut, Print, PrintEjectSlip, PrintFeedNMinimumUnits, ReturnHomeSlipStation, SetAbsoluteStartingPosition, SetColumn, SetHorizontalTabPositions, SetLineSpacingToNUnits, SetLineSpacingToOneSixteenth, SetmodeSlip, SetmodeSlipeject, SetmodeTimeout, SetSlipEjectLength |
Constructor Summary | |
SlipPrinterProtocol(java.io.ByteArrayOutputStream buffer)
Constructor |
Method Summary | |
static byte[] |
addNExtraDotRows(int number)
This method adds N ( where n = number ) extra dot rows |
static byte[] |
carriageReturn()
This method creates a carriage return message |
static byte[] |
clearPrinter()
This method creates a clear printer message |
static byte[] |
closeForm()
This method creates a close form message |
static byte[] |
feedNDotRows(int number)
This method creates a feeds N (where N= number ) dot rows message |
static byte[] |
feedNPrintLines(int number)
This method creates a feeds N (where N= number ) print lines message |
static byte[] |
fullKnifeCut()
This method creates a Full knife cut message |
static byte[] |
generateTone()
This method creates a Generate Tone message |
static byte[] |
horizontalTab()
This method creates a Horizontal Tab message |
static byte[] |
initializePrinter()
This method creates a Initialize Printer message |
static byte[] |
lineFeed()
This method creates a Line Feed message |
static byte[] |
openFormSlipStation()
This method creates a Open Form Slip Station message |
static byte[] |
partialKnifeCut()
This method creates a Partial knife cut message |
static byte[] |
print()
This method creates a Print message |
static byte[] |
print(java.lang.String theText)
This method prints string message |
static byte[] |
printEjectSlip()
This method creates a Print Eject slip message |
static byte[] |
printFeedNMinimumUnits(int units)
This method creates a Print Feed N Minimum units message |
static byte[] |
returnHomeSlipStation()
This method creates a Return Home slip station message |
static byte[] |
setAbsoluteStartingPosition(int n1,
int n2)
This method creates a Set absolute Starting position message |
static byte[] |
setColumn(int column)
This method creates a Set column message |
static byte[] |
setHorizontalTabPositions(int[] tabs)
This method creates a Set horizontal Tab Positions message |
static byte[] |
setLineSpacingToNUnits(int units)
This method creates a Set line spacing To N Units message |
static byte[] |
setLineSpacingToOneSixteenth()
This method creates a Set line spacing to one sixteenth message |
static byte[] |
setmodeSlip()
This method creates a Set mode slip message |
static byte[] |
setmodeSlipeject()
This method creates a Setmode Slip eject message |
static byte[] |
setmodeTimeout()
This method creates a Set mode timeout message |
static byte[] |
setSlipEjectLength(int len)
This method creates a Set slip eject length message |
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 |
public SlipPrinterProtocol(java.io.ByteArrayOutputStream buffer)
buffer
- The byte array output bufferMethod Detail |
public static byte[] addNExtraDotRows(int number) throws java.io.IOException
number
) extra dot rows
number
- The number of rows to add
java.io.IOException
- on errorpublic static byte[] carriageReturn() throws java.io.IOException
java.io.IOException
- on errorpublic static byte[] clearPrinter() throws java.io.IOException
java.io.IOException
- on errorpublic static byte[] closeForm() throws java.io.IOException
java.io.IOException
- on errorpublic static byte[] feedNDotRows(int number) throws java.io.IOException
number
) dot rows message
number
- The number of rows
java.io.IOException
- on errorpublic static byte[] feedNPrintLines(int number) throws java.io.IOException
number
) print lines message
number
- The number of lines
java.io.IOException
- on errorpublic static byte[] fullKnifeCut() throws java.io.IOException
java.io.IOException
- on errorpublic static byte[] generateTone() throws java.io.IOException
java.io.IOException
- on errorpublic static byte[] horizontalTab() throws java.io.IOException
java.io.IOException
- on errorpublic static byte[] initializePrinter() throws java.io.IOException
java.io.IOException
- on errorpublic static byte[] lineFeed() throws java.io.IOException
java.io.IOException
- on errorpublic static byte[] openFormSlipStation() throws java.io.IOException
java.io.IOException
- on errorpublic static byte[] partialKnifeCut() throws java.io.IOException
java.io.IOException
- on errorpublic static byte[] print() throws java.io.IOException
java.io.IOException
- on errorpublic static byte[] printEjectSlip() throws java.io.IOException
java.io.IOException
- on errorpublic static byte[] printFeedNMinimumUnits(int units) throws java.io.IOException
units
- The number of units
java.io.IOException
- on errorpublic static byte[] returnHomeSlipStation() throws java.io.IOException
java.io.IOException
- on errorpublic static byte[] setAbsoluteStartingPosition(int n1, int n2) throws java.io.IOException
n1
- Starting position 1n2
- Starting position 2
java.io.IOException
- on errorpublic static byte[] setColumn(int column) throws java.io.IOException
column
- The column
java.io.IOException
- on errorpublic static byte[] setHorizontalTabPositions(int[] tabs) throws java.io.IOException
tabs
- The tab positions
java.io.IOException
- on errorpublic static byte[] setLineSpacingToNUnits(int units) throws java.io.IOException
units
- The units
java.io.IOException
- on errorpublic static byte[] setLineSpacingToOneSixteenth() throws java.io.IOException
java.io.IOException
- on errorpublic static byte[] setmodeSlip() throws java.io.IOException
java.io.IOException
- on errorpublic static byte[] setmodeSlipeject() throws java.io.IOException
java.io.IOException
- on errorpublic static byte[] setmodeTimeout() throws java.io.IOException
java.io.IOException
- on errorpublic static byte[] setSlipEjectLength(int len) throws java.io.IOException
len
- The length
java.io.IOException
- on errorpublic static byte[] print(java.lang.String theText) throws java.io.IOException
theText
- The text to print
java.io.IOException
- on error
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |