|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sewoo.jpos.command.ESCPOS
public class ESCPOS
ESC/POS Command for Mobile Printer.
Field Summary | |
---|---|
static byte |
CAN
CAN Cancel print data in page mode |
static byte |
CR
CR Print and carriage return |
static byte |
DLE
DLE Character |
static byte |
ENQ
ENQ Character |
static byte |
EOT
EOT Character |
static byte |
ESC
ESC Character |
static byte |
FF
FF Print end position label to start printing |
static byte |
FS
FS Character |
static byte |
GS
GS Character |
static byte |
HT
HT Horizontal tab |
static byte |
LF
LF Print and line feed |
static int |
LK_STS_BATTERY_LOW
|
static int |
LK_STS_COVER_OPEN
|
static int |
LK_STS_MSR_READ
|
static int |
LK_STS_NORMAL
|
static int |
LK_STS_PAPER_EMPTY
|
static int |
LK_STS_PRINTEROFF
|
static byte |
SP
SP Character |
static int |
TRACK_1
|
static int |
TRACK_1_2
|
static int |
TRACK_2
|
static int |
TRACK_2_3
|
static int |
TRACK_3
|
Constructor Summary | |
---|---|
ESCPOS()
|
Method Summary | |
---|---|
byte[] |
DLE_ENQ(int n)
DLE ENQ . |
byte[] |
DLE_EOT(int n)
DLE EOT . |
byte[] |
ESC_2()
ESC 2 . |
byte[] |
ESC_3(int n)
ESC 3 . |
byte[] |
ESC_a(int n)
ESC a . |
byte[] |
ESC_AMPERSAND(int y,
int c1,
int c2,
byte[][] buf)
ESC & . |
byte[] |
ESC_ASTERISK(int m,
int nL,
int nH,
byte[] buf)
ESC * . |
byte[] |
ESC_AT()
ESC @ . |
byte[] |
ESC_BACKSLASH(int nL,
int nH)
ESC \ . |
byte[] |
ESC_D(byte[] buf)
ESC D . |
byte[] |
ESC_d(int n)
ESC d . |
byte[] |
ESC_DOLLAR(int nL,
int nH)
ESC $ . |
byte[] |
ESC_E(int n)
ESC E . |
byte[] |
ESC_EXCLAMATION(int n)
ESC ! |
byte[] |
ESC_FF()
ESC FF . |
byte[] |
ESC_G(int n)
ESC G . |
byte[] |
ESC_HYPHEN(int n)
ESC - . |
byte[] |
ESC_J(int n)
ESC J . |
byte[] |
ESC_L()
ESC L . |
byte[] |
ESC_LEFTBRACE(int n)
ESC { . |
byte[] |
ESC_M(int n)
ESC M . |
byte[] |
ESC_p(int m,
int t1,
int t2)
TODO ESC p . |
byte[] |
ESC_PERCENT(int n)
ESC % . |
byte[] |
ESC_QUESTION(int n)
ESC ? |
byte[] |
ESC_R(int n)
ESC R . |
byte[] |
ESC_S()
ESC S . |
byte[] |
ESC_SP(int n)
ESC SP . |
byte[] |
ESC_t(int n)
ESC t . |
byte[] |
ESC_T(int n)
ESC T . |
byte[] |
ESC_V(int n)
ESC V . |
byte[] |
ESC_W(int xL,
int xH,
int yL,
int yH,
int dxL,
int dxH,
int dyL,
int dyH)
ESC W . |
byte[] |
FS_M(int n)
FS M n. |
byte[] |
FS_p(int n,
int m)
FS p . |
byte[] |
FS_q(int n,
byte[][] buf)
FS q . |
byte[] |
GS_a(int n)
GS a . |
byte[] |
GS_ASTERISK(int x,
int y,
byte[] buf)
GS * . |
byte[] |
GS_B(int n)
GS B . |
byte[] |
GS_BACKSLASH(int nL,
int nH)
GS \ . |
byte[] |
GS_DOLLAR(int nL,
int nH)
GS $ . |
byte[] |
GS_EXCLAMATION(int n)
GS ! |
byte[] |
GS_f(int n)
GS f . |
byte[] |
GS_h(int n)
GS h . |
byte[] |
GS_H(int n)
GS H . |
byte[] |
GS_I(int n)
GS I . |
byte[] |
GS_k(int m,
int n,
byte[] data)
GS k . |
byte[] |
GS_k(int m,
int n,
java.lang.String data)
|
byte[] |
GS_L(int nL,
int nH)
GS L . |
byte[] |
GS_r(int n)
GS r . |
byte[] |
GS_S_C(int n)
GS S C . |
byte[] |
GS_SLASH(int m)
GS / . |
byte[] |
GS_v(int m,
int xL,
int xH,
int yL,
int yH,
byte[] buf)
GS v 0 . |
byte[] |
GS_w(int n)
GS w . |
byte[] |
GS_W(int nL,
int nH)
GS W . |
byte[] |
msrdataRequest()
Select Printer interface in MSR Mode. |
byte[] |
twoDToOneD(byte[][] two)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte ESC
public static final byte FS
public static final byte GS
public static final byte DLE
public static final byte EOT
public static final byte ENQ
public static final byte SP
public static final byte HT
public static final byte LF
public static final byte CR
public static final byte FF
public static final byte CAN
public static final int LK_STS_PRINTEROFF
public static final int LK_STS_MSR_READ
public static final int LK_STS_PAPER_EMPTY
public static final int LK_STS_COVER_OPEN
public static final int LK_STS_BATTERY_LOW
public static final int LK_STS_NORMAL
public static final int TRACK_1
public static final int TRACK_2
public static final int TRACK_1_2
public static final int TRACK_3
public static final int TRACK_2_3
Constructor Detail |
---|
public ESCPOS()
Method Detail |
---|
public byte[] DLE_EOT(int n)
Real-time status transmission
Selects card read mode / Cancel card read mode
0x05
- - MSR Status request - ResponseData Bit 6(MSR Mode - 1(Select
card reader mode), 0(normal mode))0x07
- - Cancel card reader modepublic byte[] DLE_ENQ(int n)
Real-time request to printer
public byte[] ESC_FF()
Print data in page mode
public byte[] ESC_SP(int n)
Set character right-side spacing
public byte[] ESC_EXCLAMATION(int n)
Set print mode
public byte[] ESC_DOLLAR(int nL, int nH)
Set absolute print position
public byte[] ESC_PERCENT(int n)
Select/cancel user-defined character set
public byte[] ESC_AMPERSAND(int y, int c1, int c2, byte[][] buf)
Define user-defined characters
public byte[] ESC_ASTERISK(int m, int nL, int nH, byte[] buf)
Set bit image mode
public byte[] ESC_HYPHEN(int n)
Turn underline mode on/off
public byte[] ESC_2()
Set 1/6 inch line spacing
public byte[] ESC_3(int n)
Set line spacing using minimum units
public byte[] ESC_QUESTION(int n)
Cancel user-defined characters
public byte[] ESC_AT()
Initialize printer
public byte[] ESC_D(byte[] buf)
Set horizontal tab positions
public byte[] ESC_E(int n)
Select emphasized mode
public byte[] ESC_G(int n)
Select double-strike mode
public byte[] ESC_J(int n)
Print end feed paper using minimum units
public byte[] ESC_L()
Select page mode
public byte[] ESC_M(int n)
Select character font
public byte[] ESC_R(int n)
Select international character set
public byte[] ESC_S()
Select standard mode
public byte[] ESC_T(int n)
Select print direction in page mode
public byte[] ESC_V(int n)
Set/cancel 90 cw rotated character
public byte[] ESC_W(int xL, int xH, int yL, int yH, int dxL, int dxH, int dyL, int dyH)
Set printing area in page mode
public byte[] ESC_BACKSLASH(int nL, int nH)
Set relative position
public byte[] ESC_a(int n)
Align position
Select justification
Left, Center, Right (0,48), (1,49), (2,50)
public byte[] ESC_d(int n)
Print and feed paper n lines
public byte[] ESC_p(int m, int t1, int t2)
Generate Pulse. (Thermal Printer Only.)
m = PIN2(0,48), PIN5(1,49) ON Time = t1 * 2ms , OFF Time = t2 * 2ms
public byte[] ESC_t(int n)
Select character code table
public byte[] ESC_LEFTBRACE(int n)
Set/cancel upside-down character printing
public byte[] FS_p(int n, int m)
Print NV bit image
public byte[] FS_q(int n, byte[][] buf)
Define NV bit image
public byte[] GS_EXCLAMATION(int n)
Select character size
public byte[] GS_DOLLAR(int nL, int nH)
Set absolute vertical print position in page mode
public byte[] GS_ASTERISK(int x, int y, byte[] buf)
Define downloaded bit image
public byte[] GS_SLASH(int m)
Print down-loaded bit image
public byte[] GS_B(int n)
Turn white/black reverse printing mode on/off
public byte[] GS_H(int n)
Select printing position of HRI characters
public byte[] GS_I(int n)
Transmit printer ID
public byte[] GS_L(int nL, int nH)
Set left margin
public byte[] GS_W(int nL, int nH)
Set printing area width
public byte[] GS_BACKSLASH(int nL, int nH)
Set relative vertical print position in page mode
public byte[] GS_a(int n)
Enable/disable Automatic Status Back(ASB)
public byte[] GS_f(int n)
Select font for HRI characters
public byte[] GS_h(int n)
Set bar code height ( 1 <= n <= 255 )
public byte[] GS_k(int m, int n, byte[] data)
GS k m n d1...dn
public byte[] GS_k(int m, int n, java.lang.String data)
public byte[] GS_r(int n)
Transmit status
public byte[] GS_v(int m, int xL, int xH, int yL, int yH, byte[] buf)
Print raster bit image
public byte[] GS_w(int n)
Set bar code width ( 2 <= n <= 6 )
public byte[] GS_S_C(int n)
Set Serial Baudrate
GS S C 01 n 0x01 0x21 0x08 0x01
0x30
- - 9600 bps0x31
- - 19200 bps0x32
- - 38400 bps0x33
- - 57600 bps0x34
- - 115200 bpspublic byte[] msrdataRequest()
public byte[] FS_M(int n)
n
- 1(0x31),(0x32),(0x33),(0x34),(0x36)
public byte[] twoDToOneD(byte[][] two)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |