Class POSPrinterService
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposBase
de.gmxhome.conrad.jpos.jpos_base.posprinter.POSPrinterService
- All Implemented Interfaces:
jpos.loader.JposServiceInstance
,jpos.services.BaseService
,jpos.services.POSPrinterService110
,jpos.services.POSPrinterService111
,jpos.services.POSPrinterService112
,jpos.services.POSPrinterService113
,jpos.services.POSPrinterService114
,jpos.services.POSPrinterService115
,jpos.services.POSPrinterService116
,jpos.services.POSPrinterService12
,jpos.services.POSPrinterService13
,jpos.services.POSPrinterService14
,jpos.services.POSPrinterService15
,jpos.services.POSPrinterService16
,jpos.services.POSPrinterService17
,jpos.services.POSPrinterService18
,jpos.services.POSPrinterService19
POSPrinter service implementation. For more details about getter, setter and method implementations,
see JposBase.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Class describing control characters in print data.static class
Class describing alignment escape sequences ESC|xA, where x is one of l, c or r.static class
Class describing barcode escape sequences ESC|[*]#R.static class
Class describing bitmap escape sequences ESC|#B.static class
Class describing color escape sequences ESC|[#]xC, where x is one of r or f.static class
Class describing cut escape sequences ESC|[#][x]P, where x is one of f or s.static class
Class describing embedded escape sequences ESC|[*]#E.static class
Class describing feed escape sequences ESC|[#]xF, where x is one of l, r or u.static class
Class describing font typeface selection escape sequences ESC|#fT.static class
Class describing line escape sequences ESC|[!][#]xC, where x is one of u or st.static class
Class describing logo escape sequences ESC|[x]L, where x is one of t or b.static class
Class describing normalize escape sequences ESC|N.static class
Class describing ruled line escape sequences ESC|*#dL.static class
Class describing scaling escape sequences ESC|[#][x]C, where x is one of h or v.static class
Class describing shading escape sequences ESC|[#]sC.static class
Class describing simple attribute setting escape sequences ESC|[!]xC, where x is one of b, i, rv, tb or tp.static class
Class describing stamp escape sequences ESC|sL.static class
Class describing unknown escape sequence.static class
Class describing printable part of print data.static class
Helper class used to control parsed output data. -
Field Summary
FieldsModifier and TypeFieldDescriptionInstance of a class implementing the POSPrinterInterface for pos printer specific setter and method calls bound to the property set.Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposBase
Device, DeviceInterface, Props
-
Constructor Summary
ConstructorsConstructorDescriptionPOSPrinterService(POSPrinterProperties props, JposDevice device)
Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
beginInsertion(int timeout)
void
beginRemoval(int timeout)
void
changePrintSide(int side)
void
Common method clearOutput, se UPOS specificationvoid
void
cutPaper(int percentage)
void
drawRuledLine(int station, String positionList, int lineDirection, int lineWidth, int lineStyle, int lineColor)
void
void
void
extendedErrorCheck(int station)
Checks whether the selected print station is operational.int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
int
int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
int
int
boolean
boolean
boolean
boolean
boolean
boolean
int
boolean
boolean
boolean
boolean
boolean
boolean
int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
int
int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
int
boolean
boolean
int
int
boolean
int
int
boolean
int
int
boolean
boolean
int
int
int
int
boolean
boolean
int
int
int
int
int
int
int
int
boolean
boolean
int
int
int
int
int
boolean
int
int
int
int
int
boolean
boolean
int
int
int
int
int
int
boolean
int
int
int
void
markFeed(int type)
static long
max(long[] valarray)
Helper function.outputDataParts(String data)
Parses output data for escape sequences and valid control characters CR and LF.void
pageModePrint(int control)
void
Checks whether the given string holds data that cannot be printed precisely on journal as expected.void
Checks whether the given string holds data that cannot be printed precisely on receipt as expected.void
Checks whether the given string holds data that cannot be printed precisely on slip as expected.void
printBarCode(int station, String data, int symbology, int height, int width, int alignment, int textPosition)
void
printBitmap(int station, String fileName, int width, int alignment)
void
printImmediate(int station, String data)
void
printMemoryBitmap(int station, byte[] data, int type, int width, int alignment)
void
printNormal(int station, String data)
void
printTwoNormal(int stations, String data1, String data2)
void
rotatePrint(int station, int rotation)
void
void
setCartridgeNotify(int i)
void
setCharacterSet(int i)
void
setFlagWhenIdle(boolean b)
void
setJrnCurrentCartridge(int i)
void
setJrnLetterQuality(boolean b)
void
setJrnLineChars(int i)
void
setJrnLineHeight(int i)
void
setJrnLineSpacing(int i)
void
void
setMapCharacterSet(boolean b)
void
setMapMode(int i)
void
setPageModeHorizontalPosition(int i)
void
void
setPageModePrintDirection(int i)
void
setPageModeStation(int i)
void
setPageModeVerticalPosition(int i)
void
setRecCurrentCartridge(int i)
void
setRecLetterQuality(boolean b)
void
setRecLineChars(int i)
void
setRecLineHeight(int i)
void
setRecLineSpacing(int i)
void
setRotateSpecial(int i)
void
setSlpCurrentCartridge(int i)
void
setSlpLetterQuality(boolean b)
void
setSlpLineChars(int i)
void
setSlpLineHeight(int i)
void
setSlpLineSpacing(int i)
void
transactionPrint(int station, int control)
void
validateData(int station, String text)
Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposBase
callNowOrLater, check, check, check, check, checkBusy, checkClaimed, checkEnabled, checkEnabledUnclaimed, checkFirstEnabled, checkHealth, checkNoChangedOrClaimed, checkOpened, claim, clearInput, clearInputProperties, close, compareFirmwareVersion, deepToString, deleteInstance, directIO, getAsyncMode, getAutoDisable, getCapCompareFirmwareVersion, getCapPowerReporting, getCapStatisticsReporting, getCapUpdateFirmware, getCapUpdateStatistics, getCheckHealthText, getClaimed, getDataCount, getDataEventEnabled, getDeviceEnabled, getDeviceServiceDescription, getDeviceServiceVersion, getFreezeEvents, getOutputID, getPhysicalDeviceDescription, getPhysicalDeviceName, getPowerNotify, getPowerState, getPropertyString, getState, logAsyncCall, logCall, logCall, logGet, logGet, logPreCall, logPreCall, logPreSet, logSet, open, release, removeOuterArraySpecifier, resetStatistics, retrieveStatistics, setAsyncMode, setAutoDisable, setDataEventEnabled, setDeviceEnabled, setFreezeEvents, setPowerNotify, signalRelease, startClaiming, updateFirmware, updateStatistics
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jpos.services.BaseService
checkHealth, claim, close, directIO, getCheckHealthText, getClaimed, getDeviceEnabled, getDeviceServiceDescription, getDeviceServiceVersion, getFreezeEvents, getPhysicalDeviceDescription, getPhysicalDeviceName, getState, open, release, setDeviceEnabled, setFreezeEvents
Methods inherited from interface jpos.loader.JposServiceInstance
deleteInstance
Methods inherited from interface jpos.services.POSPrinterService12
getAsyncMode, getOutputID, setAsyncMode
Methods inherited from interface jpos.services.POSPrinterService13
getCapPowerReporting, getPowerNotify, getPowerState, setPowerNotify
Methods inherited from interface jpos.services.POSPrinterService18
getCapStatisticsReporting, getCapUpdateStatistics, resetStatistics, retrieveStatistics, updateStatistics
Methods inherited from interface jpos.services.POSPrinterService19
compareFirmwareVersion, getCapCompareFirmwareVersion, getCapUpdateFirmware, updateFirmware
-
Field Details
-
POSPrinterInterface
Instance of a class implementing the POSPrinterInterface for pos printer specific setter and method calls bound to the property set. Almost always the same object as Data.
-
-
Constructor Details
-
POSPrinterService
Constructor. Stores given property set and device implementation object.- Parameters:
props
- Property set.device
- Device implementation object.
-
-
Method Details
-
clearOutput
public void clearOutput() throws jpos.JposExceptionDescription copied from class:JposBase
Common method clearOutput, se UPOS specification- Specified by:
clearOutput
in interfacejpos.services.POSPrinterService12
- Overrides:
clearOutput
in classJposBase
- Throws:
jpos.JposException
- See UPOS specification, method clearOutput
-
getCapCharacterSet
public int getCapCharacterSet() throws jpos.JposException- Specified by:
getCapCharacterSet
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapConcurrentJrnRec
public boolean getCapConcurrentJrnRec() throws jpos.JposException- Specified by:
getCapConcurrentJrnRec
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapConcurrentJrnSlp
public boolean getCapConcurrentJrnSlp() throws jpos.JposException- Specified by:
getCapConcurrentJrnSlp
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapConcurrentPageMode
public boolean getCapConcurrentPageMode() throws jpos.JposException- Specified by:
getCapConcurrentPageMode
in interfacejpos.services.POSPrinterService19
- Throws:
jpos.JposException
-
getCapConcurrentRecSlp
public boolean getCapConcurrentRecSlp() throws jpos.JposException- Specified by:
getCapConcurrentRecSlp
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapCoverSensor
public boolean getCapCoverSensor() throws jpos.JposException- Specified by:
getCapCoverSensor
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapJrn2Color
public boolean getCapJrn2Color() throws jpos.JposException- Specified by:
getCapJrn2Color
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapJrnBold
public boolean getCapJrnBold() throws jpos.JposException- Specified by:
getCapJrnBold
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapJrnCartridgeSensor
public int getCapJrnCartridgeSensor() throws jpos.JposException- Specified by:
getCapJrnCartridgeSensor
in interfacejpos.services.POSPrinterService15
- Throws:
jpos.JposException
-
getCapJrnColor
public int getCapJrnColor() throws jpos.JposException- Specified by:
getCapJrnColor
in interfacejpos.services.POSPrinterService15
- Throws:
jpos.JposException
-
getCapJrnDhigh
public boolean getCapJrnDhigh() throws jpos.JposException- Specified by:
getCapJrnDhigh
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapJrnDwide
public boolean getCapJrnDwide() throws jpos.JposException- Specified by:
getCapJrnDwide
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapJrnDwideDhigh
public boolean getCapJrnDwideDhigh() throws jpos.JposException- Specified by:
getCapJrnDwideDhigh
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapJrnEmptySensor
public boolean getCapJrnEmptySensor() throws jpos.JposException- Specified by:
getCapJrnEmptySensor
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapJrnItalic
public boolean getCapJrnItalic() throws jpos.JposException- Specified by:
getCapJrnItalic
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapJrnNearEndSensor
public boolean getCapJrnNearEndSensor() throws jpos.JposException- Specified by:
getCapJrnNearEndSensor
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapJrnPresent
public boolean getCapJrnPresent() throws jpos.JposException- Specified by:
getCapJrnPresent
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapJrnUnderline
public boolean getCapJrnUnderline() throws jpos.JposException- Specified by:
getCapJrnUnderline
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapMapCharacterSet
public boolean getCapMapCharacterSet() throws jpos.JposException- Specified by:
getCapMapCharacterSet
in interfacejpos.services.POSPrinterService17
- Throws:
jpos.JposException
-
getCapRec2Color
public boolean getCapRec2Color() throws jpos.JposException- Specified by:
getCapRec2Color
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapRecBarCode
public boolean getCapRecBarCode() throws jpos.JposException- Specified by:
getCapRecBarCode
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapRecBitmap
public boolean getCapRecBitmap() throws jpos.JposException- Specified by:
getCapRecBitmap
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapRecBold
public boolean getCapRecBold() throws jpos.JposException- Specified by:
getCapRecBold
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapRecCartridgeSensor
public int getCapRecCartridgeSensor() throws jpos.JposException- Specified by:
getCapRecCartridgeSensor
in interfacejpos.services.POSPrinterService15
- Throws:
jpos.JposException
-
getCapRecColor
public int getCapRecColor() throws jpos.JposException- Specified by:
getCapRecColor
in interfacejpos.services.POSPrinterService15
- Throws:
jpos.JposException
-
getCapRecDhigh
public boolean getCapRecDhigh() throws jpos.JposException- Specified by:
getCapRecDhigh
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapRecDwide
public boolean getCapRecDwide() throws jpos.JposException- Specified by:
getCapRecDwide
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapRecDwideDhigh
public boolean getCapRecDwideDhigh() throws jpos.JposException- Specified by:
getCapRecDwideDhigh
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapRecEmptySensor
public boolean getCapRecEmptySensor() throws jpos.JposException- Specified by:
getCapRecEmptySensor
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapRecItalic
public boolean getCapRecItalic() throws jpos.JposException- Specified by:
getCapRecItalic
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapRecLeft90
public boolean getCapRecLeft90() throws jpos.JposException- Specified by:
getCapRecLeft90
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapRecMarkFeed
public int getCapRecMarkFeed() throws jpos.JposException- Specified by:
getCapRecMarkFeed
in interfacejpos.services.POSPrinterService15
- Throws:
jpos.JposException
-
getCapRecNearEndSensor
public boolean getCapRecNearEndSensor() throws jpos.JposException- Specified by:
getCapRecNearEndSensor
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapRecPageMode
public boolean getCapRecPageMode() throws jpos.JposException- Specified by:
getCapRecPageMode
in interfacejpos.services.POSPrinterService19
- Throws:
jpos.JposException
-
getCapRecPapercut
public boolean getCapRecPapercut() throws jpos.JposException- Specified by:
getCapRecPapercut
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapRecPresent
public boolean getCapRecPresent() throws jpos.JposException- Specified by:
getCapRecPresent
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapRecRight90
public boolean getCapRecRight90() throws jpos.JposException- Specified by:
getCapRecRight90
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapRecRotate180
public boolean getCapRecRotate180() throws jpos.JposException- Specified by:
getCapRecRotate180
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapRecRuledLine
public int getCapRecRuledLine() throws jpos.JposException- Specified by:
getCapRecRuledLine
in interfacejpos.services.POSPrinterService113
- Throws:
jpos.JposException
-
getCapRecStamp
public boolean getCapRecStamp() throws jpos.JposException- Specified by:
getCapRecStamp
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapRecUnderline
public boolean getCapRecUnderline() throws jpos.JposException- Specified by:
getCapRecUnderline
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapSlp2Color
public boolean getCapSlp2Color() throws jpos.JposException- Specified by:
getCapSlp2Color
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapSlpBarCode
public boolean getCapSlpBarCode() throws jpos.JposException- Specified by:
getCapSlpBarCode
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapSlpBitmap
public boolean getCapSlpBitmap() throws jpos.JposException- Specified by:
getCapSlpBitmap
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapSlpBold
public boolean getCapSlpBold() throws jpos.JposException- Specified by:
getCapSlpBold
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapSlpBothSidesPrint
public boolean getCapSlpBothSidesPrint() throws jpos.JposException- Specified by:
getCapSlpBothSidesPrint
in interfacejpos.services.POSPrinterService15
- Throws:
jpos.JposException
-
getCapSlpCartridgeSensor
public int getCapSlpCartridgeSensor() throws jpos.JposException- Specified by:
getCapSlpCartridgeSensor
in interfacejpos.services.POSPrinterService15
- Throws:
jpos.JposException
-
getCapSlpColor
public int getCapSlpColor() throws jpos.JposException- Specified by:
getCapSlpColor
in interfacejpos.services.POSPrinterService15
- Throws:
jpos.JposException
-
getCapSlpDhigh
public boolean getCapSlpDhigh() throws jpos.JposException- Specified by:
getCapSlpDhigh
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapSlpDwide
public boolean getCapSlpDwide() throws jpos.JposException- Specified by:
getCapSlpDwide
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapSlpDwideDhigh
public boolean getCapSlpDwideDhigh() throws jpos.JposException- Specified by:
getCapSlpDwideDhigh
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapSlpEmptySensor
public boolean getCapSlpEmptySensor() throws jpos.JposException- Specified by:
getCapSlpEmptySensor
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapSlpFullslip
public boolean getCapSlpFullslip() throws jpos.JposException- Specified by:
getCapSlpFullslip
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapSlpItalic
public boolean getCapSlpItalic() throws jpos.JposException- Specified by:
getCapSlpItalic
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapSlpLeft90
public boolean getCapSlpLeft90() throws jpos.JposException- Specified by:
getCapSlpLeft90
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapSlpNearEndSensor
public boolean getCapSlpNearEndSensor() throws jpos.JposException- Specified by:
getCapSlpNearEndSensor
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapSlpPageMode
public boolean getCapSlpPageMode() throws jpos.JposException- Specified by:
getCapSlpPageMode
in interfacejpos.services.POSPrinterService19
- Throws:
jpos.JposException
-
getCapSlpPresent
public boolean getCapSlpPresent() throws jpos.JposException- Specified by:
getCapSlpPresent
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapSlpRight90
public boolean getCapSlpRight90() throws jpos.JposException- Specified by:
getCapSlpRight90
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapSlpRotate180
public boolean getCapSlpRotate180() throws jpos.JposException- Specified by:
getCapSlpRotate180
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapSlpRuledLine
public int getCapSlpRuledLine() throws jpos.JposException- Specified by:
getCapSlpRuledLine
in interfacejpos.services.POSPrinterService113
- Throws:
jpos.JposException
-
getCapSlpUnderline
public boolean getCapSlpUnderline() throws jpos.JposException- Specified by:
getCapSlpUnderline
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCapTransaction
public boolean getCapTransaction() throws jpos.JposException- Specified by:
getCapTransaction
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCartridgeNotify
public int getCartridgeNotify() throws jpos.JposException- Specified by:
getCartridgeNotify
in interfacejpos.services.POSPrinterService15
- Throws:
jpos.JposException
-
setCartridgeNotify
public void setCartridgeNotify(int i) throws jpos.JposException- Specified by:
setCartridgeNotify
in interfacejpos.services.POSPrinterService15
- Throws:
jpos.JposException
-
getCharacterSet
public int getCharacterSet() throws jpos.JposException- Specified by:
getCharacterSet
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
setCharacterSet
public void setCharacterSet(int i) throws jpos.JposException- Specified by:
setCharacterSet
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCharacterSetList
- Specified by:
getCharacterSetList
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getCoverOpen
public boolean getCoverOpen() throws jpos.JposException- Specified by:
getCoverOpen
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getErrorLevel
public int getErrorLevel() throws jpos.JposException- Specified by:
getErrorLevel
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getErrorStation
public int getErrorStation() throws jpos.JposException- Specified by:
getErrorStation
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getErrorString
- Specified by:
getErrorString
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getFlagWhenIdle
public boolean getFlagWhenIdle() throws jpos.JposException- Specified by:
getFlagWhenIdle
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
setFlagWhenIdle
public void setFlagWhenIdle(boolean b) throws jpos.JposException- Specified by:
setFlagWhenIdle
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getFontTypefaceList
- Specified by:
getFontTypefaceList
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getJrnCartridgeState
public int getJrnCartridgeState() throws jpos.JposException- Specified by:
getJrnCartridgeState
in interfacejpos.services.POSPrinterService15
- Throws:
jpos.JposException
-
getJrnCurrentCartridge
public int getJrnCurrentCartridge() throws jpos.JposException- Specified by:
getJrnCurrentCartridge
in interfacejpos.services.POSPrinterService15
- Throws:
jpos.JposException
-
setJrnCurrentCartridge
public void setJrnCurrentCartridge(int i) throws jpos.JposException- Specified by:
setJrnCurrentCartridge
in interfacejpos.services.POSPrinterService15
- Throws:
jpos.JposException
-
getJrnEmpty
public boolean getJrnEmpty() throws jpos.JposException- Specified by:
getJrnEmpty
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getJrnLetterQuality
public boolean getJrnLetterQuality() throws jpos.JposException- Specified by:
getJrnLetterQuality
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
setJrnLetterQuality
public void setJrnLetterQuality(boolean b) throws jpos.JposException- Specified by:
setJrnLetterQuality
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getJrnLineChars
public int getJrnLineChars() throws jpos.JposException- Specified by:
getJrnLineChars
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
setJrnLineChars
public void setJrnLineChars(int i) throws jpos.JposException- Specified by:
setJrnLineChars
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getJrnLineCharsList
- Specified by:
getJrnLineCharsList
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getJrnLineHeight
public int getJrnLineHeight() throws jpos.JposException- Specified by:
getJrnLineHeight
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
setJrnLineHeight
public void setJrnLineHeight(int i) throws jpos.JposException- Specified by:
setJrnLineHeight
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getJrnLineSpacing
public int getJrnLineSpacing() throws jpos.JposException- Specified by:
getJrnLineSpacing
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
setJrnLineSpacing
public void setJrnLineSpacing(int i) throws jpos.JposException- Specified by:
setJrnLineSpacing
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getJrnLineWidth
public int getJrnLineWidth() throws jpos.JposException- Specified by:
getJrnLineWidth
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getJrnNearEnd
public boolean getJrnNearEnd() throws jpos.JposException- Specified by:
getJrnNearEnd
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getMapCharacterSet
public boolean getMapCharacterSet() throws jpos.JposException- Specified by:
getMapCharacterSet
in interfacejpos.services.POSPrinterService17
- Throws:
jpos.JposException
-
setMapCharacterSet
public void setMapCharacterSet(boolean b) throws jpos.JposException- Specified by:
setMapCharacterSet
in interfacejpos.services.POSPrinterService17
- Throws:
jpos.JposException
-
getMapMode
public int getMapMode() throws jpos.JposException- Specified by:
getMapMode
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
setMapMode
public void setMapMode(int i) throws jpos.JposException- Specified by:
setMapMode
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getPageModeArea
- Specified by:
getPageModeArea
in interfacejpos.services.POSPrinterService19
- Throws:
jpos.JposException
-
getPageModeDescriptor
public int getPageModeDescriptor() throws jpos.JposException- Specified by:
getPageModeDescriptor
in interfacejpos.services.POSPrinterService19
- Throws:
jpos.JposException
-
getPageModeHorizontalPosition
public int getPageModeHorizontalPosition() throws jpos.JposException- Specified by:
getPageModeHorizontalPosition
in interfacejpos.services.POSPrinterService19
- Throws:
jpos.JposException
-
setPageModeHorizontalPosition
public void setPageModeHorizontalPosition(int i) throws jpos.JposException- Specified by:
setPageModeHorizontalPosition
in interfacejpos.services.POSPrinterService19
- Throws:
jpos.JposException
-
getPageModePrintArea
- Specified by:
getPageModePrintArea
in interfacejpos.services.POSPrinterService19
- Throws:
jpos.JposException
-
setPageModePrintArea
- Specified by:
setPageModePrintArea
in interfacejpos.services.POSPrinterService19
- Throws:
jpos.JposException
-
getPageModePrintDirection
public int getPageModePrintDirection() throws jpos.JposException- Specified by:
getPageModePrintDirection
in interfacejpos.services.POSPrinterService19
- Throws:
jpos.JposException
-
setPageModePrintDirection
public void setPageModePrintDirection(int i) throws jpos.JposException- Specified by:
setPageModePrintDirection
in interfacejpos.services.POSPrinterService19
- Throws:
jpos.JposException
-
getPageModeStation
public int getPageModeStation() throws jpos.JposException- Specified by:
getPageModeStation
in interfacejpos.services.POSPrinterService19
- Throws:
jpos.JposException
-
setPageModeStation
public void setPageModeStation(int i) throws jpos.JposException- Specified by:
setPageModeStation
in interfacejpos.services.POSPrinterService19
- Throws:
jpos.JposException
-
getPageModeVerticalPosition
public int getPageModeVerticalPosition() throws jpos.JposException- Specified by:
getPageModeVerticalPosition
in interfacejpos.services.POSPrinterService19
- Throws:
jpos.JposException
-
setPageModeVerticalPosition
public void setPageModeVerticalPosition(int i) throws jpos.JposException- Specified by:
setPageModeVerticalPosition
in interfacejpos.services.POSPrinterService19
- Throws:
jpos.JposException
-
getRecBarCodeRotationList
- Specified by:
getRecBarCodeRotationList
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getRecBitmapRotationList
- Specified by:
getRecBitmapRotationList
in interfacejpos.services.POSPrinterService17
- Throws:
jpos.JposException
-
getRecCartridgeState
public int getRecCartridgeState() throws jpos.JposException- Specified by:
getRecCartridgeState
in interfacejpos.services.POSPrinterService15
- Throws:
jpos.JposException
-
getRecCurrentCartridge
public int getRecCurrentCartridge() throws jpos.JposException- Specified by:
getRecCurrentCartridge
in interfacejpos.services.POSPrinterService15
- Throws:
jpos.JposException
-
setRecCurrentCartridge
public void setRecCurrentCartridge(int i) throws jpos.JposException- Specified by:
setRecCurrentCartridge
in interfacejpos.services.POSPrinterService15
- Throws:
jpos.JposException
-
getRecEmpty
public boolean getRecEmpty() throws jpos.JposException- Specified by:
getRecEmpty
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getRecLetterQuality
public boolean getRecLetterQuality() throws jpos.JposException- Specified by:
getRecLetterQuality
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
setRecLetterQuality
public void setRecLetterQuality(boolean b) throws jpos.JposException- Specified by:
setRecLetterQuality
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getRecLineChars
public int getRecLineChars() throws jpos.JposException- Specified by:
getRecLineChars
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
setRecLineChars
public void setRecLineChars(int i) throws jpos.JposException- Specified by:
setRecLineChars
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getRecLineCharsList
- Specified by:
getRecLineCharsList
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getRecLineHeight
public int getRecLineHeight() throws jpos.JposException- Specified by:
getRecLineHeight
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
setRecLineHeight
public void setRecLineHeight(int i) throws jpos.JposException- Specified by:
setRecLineHeight
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getRecLineSpacing
public int getRecLineSpacing() throws jpos.JposException- Specified by:
getRecLineSpacing
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
setRecLineSpacing
public void setRecLineSpacing(int i) throws jpos.JposException- Specified by:
setRecLineSpacing
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getRecLinesToPaperCut
public int getRecLinesToPaperCut() throws jpos.JposException- Specified by:
getRecLinesToPaperCut
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getRecLineWidth
public int getRecLineWidth() throws jpos.JposException- Specified by:
getRecLineWidth
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getRecNearEnd
public boolean getRecNearEnd() throws jpos.JposException- Specified by:
getRecNearEnd
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getRecSidewaysMaxChars
public int getRecSidewaysMaxChars() throws jpos.JposException- Specified by:
getRecSidewaysMaxChars
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getRecSidewaysMaxLines
public int getRecSidewaysMaxLines() throws jpos.JposException- Specified by:
getRecSidewaysMaxLines
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getRotateSpecial
public int getRotateSpecial() throws jpos.JposException- Specified by:
getRotateSpecial
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
setRotateSpecial
public void setRotateSpecial(int i) throws jpos.JposException- Specified by:
setRotateSpecial
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getSlpBarCodeRotationList
- Specified by:
getSlpBarCodeRotationList
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getSlpBitmapRotationList
- Specified by:
getSlpBitmapRotationList
in interfacejpos.services.POSPrinterService17
- Throws:
jpos.JposException
-
getSlpCartridgeState
public int getSlpCartridgeState() throws jpos.JposException- Specified by:
getSlpCartridgeState
in interfacejpos.services.POSPrinterService15
- Throws:
jpos.JposException
-
getSlpCurrentCartridge
public int getSlpCurrentCartridge() throws jpos.JposException- Specified by:
getSlpCurrentCartridge
in interfacejpos.services.POSPrinterService15
- Throws:
jpos.JposException
-
setSlpCurrentCartridge
public void setSlpCurrentCartridge(int i) throws jpos.JposException- Specified by:
setSlpCurrentCartridge
in interfacejpos.services.POSPrinterService15
- Throws:
jpos.JposException
-
getSlpEmpty
public boolean getSlpEmpty() throws jpos.JposException- Specified by:
getSlpEmpty
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getSlpLetterQuality
public boolean getSlpLetterQuality() throws jpos.JposException- Specified by:
getSlpLetterQuality
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
setSlpLetterQuality
public void setSlpLetterQuality(boolean b) throws jpos.JposException- Specified by:
setSlpLetterQuality
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getSlpLineChars
public int getSlpLineChars() throws jpos.JposException- Specified by:
getSlpLineChars
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
setSlpLineChars
public void setSlpLineChars(int i) throws jpos.JposException- Specified by:
setSlpLineChars
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getSlpLineCharsList
- Specified by:
getSlpLineCharsList
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getSlpLineHeight
public int getSlpLineHeight() throws jpos.JposException- Specified by:
getSlpLineHeight
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
setSlpLineHeight
public void setSlpLineHeight(int i) throws jpos.JposException- Specified by:
setSlpLineHeight
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getSlpLinesNearEndToEnd
public int getSlpLinesNearEndToEnd() throws jpos.JposException- Specified by:
getSlpLinesNearEndToEnd
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getSlpLineSpacing
public int getSlpLineSpacing() throws jpos.JposException- Specified by:
getSlpLineSpacing
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
setSlpLineSpacing
public void setSlpLineSpacing(int i) throws jpos.JposException- Specified by:
setSlpLineSpacing
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getSlpLineWidth
public int getSlpLineWidth() throws jpos.JposException- Specified by:
getSlpLineWidth
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getSlpMaxLines
public int getSlpMaxLines() throws jpos.JposException- Specified by:
getSlpMaxLines
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getSlpNearEnd
public boolean getSlpNearEnd() throws jpos.JposException- Specified by:
getSlpNearEnd
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getSlpPrintSide
public int getSlpPrintSide() throws jpos.JposException- Specified by:
getSlpPrintSide
in interfacejpos.services.POSPrinterService15
- Throws:
jpos.JposException
-
getSlpSidewaysMaxChars
public int getSlpSidewaysMaxChars() throws jpos.JposException- Specified by:
getSlpSidewaysMaxChars
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
getSlpSidewaysMaxLines
public int getSlpSidewaysMaxLines() throws jpos.JposException- Specified by:
getSlpSidewaysMaxLines
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
beginInsertion
public void beginInsertion(int timeout) throws jpos.JposException- Specified by:
beginInsertion
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
beginRemoval
public void beginRemoval(int timeout) throws jpos.JposException- Specified by:
beginRemoval
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
changePrintSide
public void changePrintSide(int side) throws jpos.JposException- Specified by:
changePrintSide
in interfacejpos.services.POSPrinterService15
- Throws:
jpos.JposException
-
clearPrintArea
public void clearPrintArea() throws jpos.JposException- Specified by:
clearPrintArea
in interfacejpos.services.POSPrinterService19
- Throws:
jpos.JposException
-
endInsertion
public void endInsertion() throws jpos.JposException- Specified by:
endInsertion
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
endRemoval
public void endRemoval() throws jpos.JposException- Specified by:
endRemoval
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
printImmediate
- Specified by:
printImmediate
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
setBitmap
public void setBitmap(int bitmapNumber, int station, String fileName, int width, int alignment) throws jpos.JposException- Specified by:
setBitmap
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
setLogo
- Specified by:
setLogo
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
validateData
- Specified by:
validateData
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
cutPaper
public void cutPaper(int percentage) throws jpos.JposException- Specified by:
cutPaper
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
drawRuledLine
public void drawRuledLine(int station, String positionList, int lineDirection, int lineWidth, int lineStyle, int lineColor) throws jpos.JposException- Specified by:
drawRuledLine
in interfacejpos.services.POSPrinterService113
- Throws:
jpos.JposException
-
markFeed
public void markFeed(int type) throws jpos.JposException- Specified by:
markFeed
in interfacejpos.services.POSPrinterService15
- Throws:
jpos.JposException
-
printBarCode
public void printBarCode(int station, String data, int symbology, int height, int width, int alignment, int textPosition) throws jpos.JposException- Specified by:
printBarCode
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
printBitmap
public void printBitmap(int station, String fileName, int width, int alignment) throws jpos.JposException- Specified by:
printBitmap
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
printMemoryBitmap
public void printMemoryBitmap(int station, byte[] data, int type, int width, int alignment) throws jpos.JposException- Specified by:
printMemoryBitmap
in interfacejpos.services.POSPrinterService110
- Throws:
jpos.JposException
-
printNormal
- Specified by:
printNormal
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
printTwoNormal
- Specified by:
printTwoNormal
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
pageModePrint
public void pageModePrint(int control) throws jpos.JposException- Specified by:
pageModePrint
in interfacejpos.services.POSPrinterService19
- Throws:
jpos.JposException
-
rotatePrint
public void rotatePrint(int station, int rotation) throws jpos.JposException- Specified by:
rotatePrint
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
transactionPrint
public void transactionPrint(int station, int control) throws jpos.JposException- Specified by:
transactionPrint
in interfacejpos.services.POSPrinterService12
- Throws:
jpos.JposException
-
max
public static long max(long[] valarray)Helper function. Retrieves maximum value of a long array.- Parameters:
valarray
- The array.- Returns:
- Maximum value stored in valarray.
-
outputDataParts
Parses output data for escape sequences and valid control characters CR and LF. See UPOS specification for POSPrinter, chapter Data Characters and Escape Sequences. Returns list of objects that describe all parts of the output string. These objects can be used by validate and print functions to check print data and to generate generic output data. Possible objects in list have one of the following types:- PrintData - Class containing character strings with printable characters only. See PrintData for details.
- ControlChar - Class containing control character CR or LF. While LF should be always valid, CR can be invalid, depending on printer capabilities.
- EscCut - Class containing information about details of a cut command. See EscCut for details.
- EscRuledLine - Class containing information about details of a ruled line command. See EscRuledLine for details.
- EscNormalize - Class containing information about details of a normalize command. See EscNormalize for details.
- EscLogo - Class containing information about details of a logo command. See EscLogo for details.
- EscStamp - Class containing information about details of a stamp command. See EscStamp for details.
- EscBitmap - Class containing information about details of a bitmap command. See EscBitmap for details.
- EscFeed - Class containing information about details of a feed command. See EscFeed for details.
- EscEmbedded - Class containing information about details of a embedded data command. See EscEmbedded for details.
- EscBarcode - Class containing information about details of a barcode command. See EscBarcode for details.
- EscFontTypeface - Class containing information about details of a font typeface command. See EscFontTypeface for details.
- EscAlignment - Class containing information about details of an alignment command. See EscAlignment for details.
- EscScale - Class containing information about details of a scale command. See EscScale for details.
- EscSimple - Class containing information about details of a simple attribute command. See EscSimple for details.
- EscLine - Class containing information about details of an added line command. See EscLine for details.
- EscColor - Class containing information about details of a color setting command. See EscColor for details.
- EscShade - Class containing information about details of a shading command. See EscShade for details.
- EscUnknown - Class containing information about details of an unknown escape sequence.
- Parameters:
data
- Character string to be printed. May contain CR, LF and ESC sequences as described in the UPOS specification.- Returns:
- List of objects that describe all parts of data.
-
plausibilityCheckSlipData
public void plausibilityCheckSlipData(List<POSPrinterService.PrintDataPart> data) throws jpos.JposExceptionChecks whether the given string holds data that cannot be printed precisely on slip as expected. See UPOS method ValidateData for details.
this method checks only the general ability for those features that can be checked via capabilitys or other property values. More detailed checks must be performed by device specific service implementations.- Parameters:
data
- Data to be checked. See UPOS method ValidateData for more details.- Throws:
jpos.JposException
- See UPOS specification of method ValidateData. Error code can be E_ILLEGAL or E_FAILURE.
-
plausibilityCheckReceiptData
public void plausibilityCheckReceiptData(List<POSPrinterService.PrintDataPart> data) throws jpos.JposExceptionChecks whether the given string holds data that cannot be printed precisely on receipt as expected. See UPOS method ValidateData for details.
this method checks only the general ability for those features that can be checked via capabilitys or other property values. More detailed checks must be performed by device specific service implementations.- Parameters:
data
- Data to be checked. See UPOS method ValidateData for more details.- Throws:
jpos.JposException
- See UPOS specification of method ValidateData. Error code can be E_ILLEGAL or E_FAILURE.
-
plausibilityCheckJournalData
public void plausibilityCheckJournalData(List<POSPrinterService.PrintDataPart> data) throws jpos.JposExceptionChecks whether the given string holds data that cannot be printed precisely on journal as expected. See UPOS method ValidateData for details.
this method checks only the general ability for those features that can be checked via capabilities or other property values. More detailed checks must be performed by device specific service implementations.- Parameters:
data
- List of objects derived from PrintDataPart to be checked.- Throws:
jpos.JposException
- See UPOS specification of method ValidateData. Error code can be E_ILLEGAL or E_FAILURE.
-
extendedErrorCheck
public void extendedErrorCheck(int station) throws jpos.JposExceptionChecks whether the selected print station is operational.- Parameters:
station
- Station to be checked- Throws:
jpos.JposException
- If station is not present or not operational.
-