|
||||||||||
| 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
com.bankframe.services.devices.SlipPrinter.SlipPrinterProtocol
public class 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(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(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(ByteArrayOutputStream buffer)
buffer - The byte array output buffer| Method Detail |
|---|
public static byte[] addNExtraDotRows(int number)
throws IOException
number) extra dot rows
number - The number of rows to add
IOException - on error
public static byte[] carriageReturn()
throws IOException
IOException - on error
public static byte[] clearPrinter()
throws IOException
IOException - on error
public static byte[] closeForm()
throws IOException
IOException - on error
public static byte[] feedNDotRows(int number)
throws IOException
number) dot rows message
number - The number of rows
IOException - on error
public static byte[] feedNPrintLines(int number)
throws IOException
number) print lines message
number - The number of lines
IOException - on error
public static byte[] fullKnifeCut()
throws IOException
IOException - on error
public static byte[] generateTone()
throws IOException
IOException - on error
public static byte[] horizontalTab()
throws IOException
IOException - on error
public static byte[] initializePrinter()
throws IOException
IOException - on error
public static byte[] lineFeed()
throws IOException
IOException - on error
public static byte[] openFormSlipStation()
throws IOException
IOException - on error
public static byte[] partialKnifeCut()
throws IOException
IOException - on error
public static byte[] print()
throws IOException
IOException - on error
public static byte[] printEjectSlip()
throws IOException
IOException - on error
public static byte[] printFeedNMinimumUnits(int units)
throws IOException
units - The number of units
IOException - on error
public static byte[] returnHomeSlipStation()
throws IOException
IOException - on error
public static byte[] setAbsoluteStartingPosition(int n1,
int n2)
throws IOException
n1 - Starting position 1n2 - Starting position 2
IOException - on error
public static byte[] setColumn(int column)
throws IOException
column - The column
IOException - on error
public static byte[] setHorizontalTabPositions(int[] tabs)
throws IOException
tabs - The tab positions
IOException - on error
public static byte[] setLineSpacingToNUnits(int units)
throws IOException
units - The units
IOException - on error
public static byte[] setLineSpacingToOneSixteenth()
throws IOException
IOException - on error
public static byte[] setmodeSlip()
throws IOException
IOException - on error
public static byte[] setmodeSlipeject()
throws IOException
IOException - on error
public static byte[] setmodeTimeout()
throws IOException
IOException - on error
public static byte[] setSlipEjectLength(int len)
throws IOException
len - The length
IOException - on error
public static byte[] print(String theText)
throws IOException
theText - The text to print
IOException - on error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||