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 classClass describing control characters in print data.static classClass describing alignment escape sequences ESC|xA, where x is one of l, c or r.static classClass describing barcode escape sequences ESC|[*]#R.static classClass describing bitmap escape sequences ESC|#B.static classClass describing color escape sequences ESC|[#]xC, where x is one of r or f.static classClass describing cut escape sequences ESC|[#][x]P, where x is one of f or s.static classClass describing embedded escape sequences ESC|[*]#E.static classClass describing feed escape sequences ESC|[#]xF, where x is one of l, r or u.static classClass describing font typeface selection escape sequences ESC|#fT.static classClass describing line escape sequences ESC|[!][#]xC, where x is one of u or st.static classClass describing logo escape sequences ESC|[x]L, where x is one of t or b.static classClass describing normalize escape sequences ESC|N.static classClass describing ruled line escape sequences ESC|*#dL.static classClass describing scaling escape sequences ESC|[#][x]C, where x is one of h or v.static classClass describing shading escape sequences ESC|[#]sC.static classClass describing simple attribute setting escape sequences ESC|[!]xC, where x is one of b, i, rv, tb or tp.static classClass describing stamp escape sequences ESC|sL.static classClass describing unknown escape sequence.static classClass describing printable part of print data.static classHelper 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 TypeMethodDescriptionvoidbeginInsertion(int timeout)voidbeginRemoval(int timeout)voidchangePrintSide(int side)voidCommon method clearOutput, se UPOS specificationvoidvoidcutPaper(int percentage)voiddrawRuledLine(int station, String positionList, int lineDirection, int lineWidth, int lineStyle, int lineColor)voidvoidvoidextendedErrorCheck(int station)Checks whether the selected print station is operational.intbooleanbooleanbooleanbooleanbooleanbooleanbooleanintintbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanintintbooleanbooleanbooleanbooleanbooleanbooleanintbooleanbooleanbooleanbooleanbooleanbooleanintbooleanbooleanbooleanbooleanbooleanbooleanbooleanintintbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanintbooleanbooleanintintbooleanintintbooleanintintbooleanbooleanintintintintbooleanbooleanintintintintintintintintbooleanbooleanintintintintintbooleanintintintintintbooleanbooleanintintintintintintbooleanintintintvoidmarkFeed(int type)static longmax(long[] valarray)Helper function.outputDataParts(String data)Parses output data for escape sequences and valid control characters CR and LF.voidpageModePrint(int control)voidChecks whether the given string holds data that cannot be printed precisely on journal as expected.voidChecks whether the given string holds data that cannot be printed precisely on receipt as expected.voidChecks whether the given string holds data that cannot be printed precisely on slip as expected.voidprintBarCode(int station, String data, int symbology, int height, int width, int alignment, int textPosition)voidprintBitmap(int station, String fileName, int width, int alignment)voidprintImmediate(int station, String data)voidprintMemoryBitmap(int station, byte[] data, int type, int width, int alignment)voidprintNormal(int station, String data)voidprintTwoNormal(int stations, String data1, String data2)voidrotatePrint(int station, int rotation)voidvoidsetCartridgeNotify(int i)voidsetCharacterSet(int i)voidsetFlagWhenIdle(boolean b)voidsetJrnCurrentCartridge(int i)voidsetJrnLetterQuality(boolean b)voidsetJrnLineChars(int i)voidsetJrnLineHeight(int i)voidsetJrnLineSpacing(int i)voidvoidsetMapCharacterSet(boolean b)voidsetMapMode(int i)voidsetPageModeHorizontalPosition(int i)voidvoidsetPageModePrintDirection(int i)voidsetPageModeStation(int i)voidsetPageModeVerticalPosition(int i)voidsetRecCurrentCartridge(int i)voidsetRecLetterQuality(boolean b)voidsetRecLineChars(int i)voidsetRecLineHeight(int i)voidsetRecLineSpacing(int i)voidsetRotateSpecial(int i)voidsetSlpCurrentCartridge(int i)voidsetSlpLetterQuality(boolean b)voidsetSlpLineChars(int i)voidsetSlpLineHeight(int i)voidsetSlpLineSpacing(int i)voidtransactionPrint(int station, int control)voidvalidateData(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, updateStatisticsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jpos.services.BaseService
checkHealth, claim, close, directIO, getCheckHealthText, getClaimed, getDeviceEnabled, getDeviceServiceDescription, getDeviceServiceVersion, getFreezeEvents, getPhysicalDeviceDescription, getPhysicalDeviceName, getState, open, release, setDeviceEnabled, setFreezeEventsMethods inherited from interface jpos.loader.JposServiceInstance
deleteInstanceMethods inherited from interface jpos.services.POSPrinterService12
getAsyncMode, getOutputID, setAsyncModeMethods inherited from interface jpos.services.POSPrinterService13
getCapPowerReporting, getPowerNotify, getPowerState, setPowerNotifyMethods inherited from interface jpos.services.POSPrinterService18
getCapStatisticsReporting, getCapUpdateStatistics, resetStatistics, retrieveStatistics, updateStatisticsMethods 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:JposBaseCommon method clearOutput, se UPOS specification- Specified by:
clearOutputin interfacejpos.services.POSPrinterService12- Overrides:
clearOutputin classJposBase- Throws:
jpos.JposException- See UPOS specification, method clearOutput
-
getCapCharacterSet
public int getCapCharacterSet() throws jpos.JposException- Specified by:
getCapCharacterSetin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapConcurrentJrnRec
public boolean getCapConcurrentJrnRec() throws jpos.JposException- Specified by:
getCapConcurrentJrnRecin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapConcurrentJrnSlp
public boolean getCapConcurrentJrnSlp() throws jpos.JposException- Specified by:
getCapConcurrentJrnSlpin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapConcurrentPageMode
public boolean getCapConcurrentPageMode() throws jpos.JposException- Specified by:
getCapConcurrentPageModein interfacejpos.services.POSPrinterService19- Throws:
jpos.JposException
-
getCapConcurrentRecSlp
public boolean getCapConcurrentRecSlp() throws jpos.JposException- Specified by:
getCapConcurrentRecSlpin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapCoverSensor
public boolean getCapCoverSensor() throws jpos.JposException- Specified by:
getCapCoverSensorin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapJrn2Color
public boolean getCapJrn2Color() throws jpos.JposException- Specified by:
getCapJrn2Colorin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapJrnBold
public boolean getCapJrnBold() throws jpos.JposException- Specified by:
getCapJrnBoldin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapJrnCartridgeSensor
public int getCapJrnCartridgeSensor() throws jpos.JposException- Specified by:
getCapJrnCartridgeSensorin interfacejpos.services.POSPrinterService15- Throws:
jpos.JposException
-
getCapJrnColor
public int getCapJrnColor() throws jpos.JposException- Specified by:
getCapJrnColorin interfacejpos.services.POSPrinterService15- Throws:
jpos.JposException
-
getCapJrnDhigh
public boolean getCapJrnDhigh() throws jpos.JposException- Specified by:
getCapJrnDhighin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapJrnDwide
public boolean getCapJrnDwide() throws jpos.JposException- Specified by:
getCapJrnDwidein interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapJrnDwideDhigh
public boolean getCapJrnDwideDhigh() throws jpos.JposException- Specified by:
getCapJrnDwideDhighin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapJrnEmptySensor
public boolean getCapJrnEmptySensor() throws jpos.JposException- Specified by:
getCapJrnEmptySensorin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapJrnItalic
public boolean getCapJrnItalic() throws jpos.JposException- Specified by:
getCapJrnItalicin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapJrnNearEndSensor
public boolean getCapJrnNearEndSensor() throws jpos.JposException- Specified by:
getCapJrnNearEndSensorin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapJrnPresent
public boolean getCapJrnPresent() throws jpos.JposException- Specified by:
getCapJrnPresentin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapJrnUnderline
public boolean getCapJrnUnderline() throws jpos.JposException- Specified by:
getCapJrnUnderlinein interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapMapCharacterSet
public boolean getCapMapCharacterSet() throws jpos.JposException- Specified by:
getCapMapCharacterSetin interfacejpos.services.POSPrinterService17- Throws:
jpos.JposException
-
getCapRec2Color
public boolean getCapRec2Color() throws jpos.JposException- Specified by:
getCapRec2Colorin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapRecBarCode
public boolean getCapRecBarCode() throws jpos.JposException- Specified by:
getCapRecBarCodein interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapRecBitmap
public boolean getCapRecBitmap() throws jpos.JposException- Specified by:
getCapRecBitmapin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapRecBold
public boolean getCapRecBold() throws jpos.JposException- Specified by:
getCapRecBoldin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapRecCartridgeSensor
public int getCapRecCartridgeSensor() throws jpos.JposException- Specified by:
getCapRecCartridgeSensorin interfacejpos.services.POSPrinterService15- Throws:
jpos.JposException
-
getCapRecColor
public int getCapRecColor() throws jpos.JposException- Specified by:
getCapRecColorin interfacejpos.services.POSPrinterService15- Throws:
jpos.JposException
-
getCapRecDhigh
public boolean getCapRecDhigh() throws jpos.JposException- Specified by:
getCapRecDhighin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapRecDwide
public boolean getCapRecDwide() throws jpos.JposException- Specified by:
getCapRecDwidein interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapRecDwideDhigh
public boolean getCapRecDwideDhigh() throws jpos.JposException- Specified by:
getCapRecDwideDhighin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapRecEmptySensor
public boolean getCapRecEmptySensor() throws jpos.JposException- Specified by:
getCapRecEmptySensorin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapRecItalic
public boolean getCapRecItalic() throws jpos.JposException- Specified by:
getCapRecItalicin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapRecLeft90
public boolean getCapRecLeft90() throws jpos.JposException- Specified by:
getCapRecLeft90in interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapRecMarkFeed
public int getCapRecMarkFeed() throws jpos.JposException- Specified by:
getCapRecMarkFeedin interfacejpos.services.POSPrinterService15- Throws:
jpos.JposException
-
getCapRecNearEndSensor
public boolean getCapRecNearEndSensor() throws jpos.JposException- Specified by:
getCapRecNearEndSensorin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapRecPageMode
public boolean getCapRecPageMode() throws jpos.JposException- Specified by:
getCapRecPageModein interfacejpos.services.POSPrinterService19- Throws:
jpos.JposException
-
getCapRecPapercut
public boolean getCapRecPapercut() throws jpos.JposException- Specified by:
getCapRecPapercutin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapRecPresent
public boolean getCapRecPresent() throws jpos.JposException- Specified by:
getCapRecPresentin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapRecRight90
public boolean getCapRecRight90() throws jpos.JposException- Specified by:
getCapRecRight90in interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapRecRotate180
public boolean getCapRecRotate180() throws jpos.JposException- Specified by:
getCapRecRotate180in interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapRecRuledLine
public int getCapRecRuledLine() throws jpos.JposException- Specified by:
getCapRecRuledLinein interfacejpos.services.POSPrinterService113- Throws:
jpos.JposException
-
getCapRecStamp
public boolean getCapRecStamp() throws jpos.JposException- Specified by:
getCapRecStampin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapRecUnderline
public boolean getCapRecUnderline() throws jpos.JposException- Specified by:
getCapRecUnderlinein interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapSlp2Color
public boolean getCapSlp2Color() throws jpos.JposException- Specified by:
getCapSlp2Colorin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapSlpBarCode
public boolean getCapSlpBarCode() throws jpos.JposException- Specified by:
getCapSlpBarCodein interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapSlpBitmap
public boolean getCapSlpBitmap() throws jpos.JposException- Specified by:
getCapSlpBitmapin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapSlpBold
public boolean getCapSlpBold() throws jpos.JposException- Specified by:
getCapSlpBoldin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapSlpBothSidesPrint
public boolean getCapSlpBothSidesPrint() throws jpos.JposException- Specified by:
getCapSlpBothSidesPrintin interfacejpos.services.POSPrinterService15- Throws:
jpos.JposException
-
getCapSlpCartridgeSensor
public int getCapSlpCartridgeSensor() throws jpos.JposException- Specified by:
getCapSlpCartridgeSensorin interfacejpos.services.POSPrinterService15- Throws:
jpos.JposException
-
getCapSlpColor
public int getCapSlpColor() throws jpos.JposException- Specified by:
getCapSlpColorin interfacejpos.services.POSPrinterService15- Throws:
jpos.JposException
-
getCapSlpDhigh
public boolean getCapSlpDhigh() throws jpos.JposException- Specified by:
getCapSlpDhighin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapSlpDwide
public boolean getCapSlpDwide() throws jpos.JposException- Specified by:
getCapSlpDwidein interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapSlpDwideDhigh
public boolean getCapSlpDwideDhigh() throws jpos.JposException- Specified by:
getCapSlpDwideDhighin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapSlpEmptySensor
public boolean getCapSlpEmptySensor() throws jpos.JposException- Specified by:
getCapSlpEmptySensorin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapSlpFullslip
public boolean getCapSlpFullslip() throws jpos.JposException- Specified by:
getCapSlpFullslipin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapSlpItalic
public boolean getCapSlpItalic() throws jpos.JposException- Specified by:
getCapSlpItalicin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapSlpLeft90
public boolean getCapSlpLeft90() throws jpos.JposException- Specified by:
getCapSlpLeft90in interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapSlpNearEndSensor
public boolean getCapSlpNearEndSensor() throws jpos.JposException- Specified by:
getCapSlpNearEndSensorin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapSlpPageMode
public boolean getCapSlpPageMode() throws jpos.JposException- Specified by:
getCapSlpPageModein interfacejpos.services.POSPrinterService19- Throws:
jpos.JposException
-
getCapSlpPresent
public boolean getCapSlpPresent() throws jpos.JposException- Specified by:
getCapSlpPresentin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapSlpRight90
public boolean getCapSlpRight90() throws jpos.JposException- Specified by:
getCapSlpRight90in interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapSlpRotate180
public boolean getCapSlpRotate180() throws jpos.JposException- Specified by:
getCapSlpRotate180in interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapSlpRuledLine
public int getCapSlpRuledLine() throws jpos.JposException- Specified by:
getCapSlpRuledLinein interfacejpos.services.POSPrinterService113- Throws:
jpos.JposException
-
getCapSlpUnderline
public boolean getCapSlpUnderline() throws jpos.JposException- Specified by:
getCapSlpUnderlinein interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCapTransaction
public boolean getCapTransaction() throws jpos.JposException- Specified by:
getCapTransactionin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCartridgeNotify
public int getCartridgeNotify() throws jpos.JposException- Specified by:
getCartridgeNotifyin interfacejpos.services.POSPrinterService15- Throws:
jpos.JposException
-
setCartridgeNotify
public void setCartridgeNotify(int i) throws jpos.JposException- Specified by:
setCartridgeNotifyin interfacejpos.services.POSPrinterService15- Throws:
jpos.JposException
-
getCharacterSet
public int getCharacterSet() throws jpos.JposException- Specified by:
getCharacterSetin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
setCharacterSet
public void setCharacterSet(int i) throws jpos.JposException- Specified by:
setCharacterSetin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCharacterSetList
- Specified by:
getCharacterSetListin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getCoverOpen
public boolean getCoverOpen() throws jpos.JposException- Specified by:
getCoverOpenin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getErrorLevel
public int getErrorLevel() throws jpos.JposException- Specified by:
getErrorLevelin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getErrorStation
public int getErrorStation() throws jpos.JposException- Specified by:
getErrorStationin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getErrorString
- Specified by:
getErrorStringin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getFlagWhenIdle
public boolean getFlagWhenIdle() throws jpos.JposException- Specified by:
getFlagWhenIdlein interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
setFlagWhenIdle
public void setFlagWhenIdle(boolean b) throws jpos.JposException- Specified by:
setFlagWhenIdlein interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getFontTypefaceList
- Specified by:
getFontTypefaceListin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getJrnCartridgeState
public int getJrnCartridgeState() throws jpos.JposException- Specified by:
getJrnCartridgeStatein interfacejpos.services.POSPrinterService15- Throws:
jpos.JposException
-
getJrnCurrentCartridge
public int getJrnCurrentCartridge() throws jpos.JposException- Specified by:
getJrnCurrentCartridgein interfacejpos.services.POSPrinterService15- Throws:
jpos.JposException
-
setJrnCurrentCartridge
public void setJrnCurrentCartridge(int i) throws jpos.JposException- Specified by:
setJrnCurrentCartridgein interfacejpos.services.POSPrinterService15- Throws:
jpos.JposException
-
getJrnEmpty
public boolean getJrnEmpty() throws jpos.JposException- Specified by:
getJrnEmptyin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getJrnLetterQuality
public boolean getJrnLetterQuality() throws jpos.JposException- Specified by:
getJrnLetterQualityin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
setJrnLetterQuality
public void setJrnLetterQuality(boolean b) throws jpos.JposException- Specified by:
setJrnLetterQualityin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getJrnLineChars
public int getJrnLineChars() throws jpos.JposException- Specified by:
getJrnLineCharsin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
setJrnLineChars
public void setJrnLineChars(int i) throws jpos.JposException- Specified by:
setJrnLineCharsin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getJrnLineCharsList
- Specified by:
getJrnLineCharsListin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getJrnLineHeight
public int getJrnLineHeight() throws jpos.JposException- Specified by:
getJrnLineHeightin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
setJrnLineHeight
public void setJrnLineHeight(int i) throws jpos.JposException- Specified by:
setJrnLineHeightin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getJrnLineSpacing
public int getJrnLineSpacing() throws jpos.JposException- Specified by:
getJrnLineSpacingin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
setJrnLineSpacing
public void setJrnLineSpacing(int i) throws jpos.JposException- Specified by:
setJrnLineSpacingin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getJrnLineWidth
public int getJrnLineWidth() throws jpos.JposException- Specified by:
getJrnLineWidthin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getJrnNearEnd
public boolean getJrnNearEnd() throws jpos.JposException- Specified by:
getJrnNearEndin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getMapCharacterSet
public boolean getMapCharacterSet() throws jpos.JposException- Specified by:
getMapCharacterSetin interfacejpos.services.POSPrinterService17- Throws:
jpos.JposException
-
setMapCharacterSet
public void setMapCharacterSet(boolean b) throws jpos.JposException- Specified by:
setMapCharacterSetin interfacejpos.services.POSPrinterService17- Throws:
jpos.JposException
-
getMapMode
public int getMapMode() throws jpos.JposException- Specified by:
getMapModein interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
setMapMode
public void setMapMode(int i) throws jpos.JposException- Specified by:
setMapModein interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getPageModeArea
- Specified by:
getPageModeAreain interfacejpos.services.POSPrinterService19- Throws:
jpos.JposException
-
getPageModeDescriptor
public int getPageModeDescriptor() throws jpos.JposException- Specified by:
getPageModeDescriptorin interfacejpos.services.POSPrinterService19- Throws:
jpos.JposException
-
getPageModeHorizontalPosition
public int getPageModeHorizontalPosition() throws jpos.JposException- Specified by:
getPageModeHorizontalPositionin interfacejpos.services.POSPrinterService19- Throws:
jpos.JposException
-
setPageModeHorizontalPosition
public void setPageModeHorizontalPosition(int i) throws jpos.JposException- Specified by:
setPageModeHorizontalPositionin interfacejpos.services.POSPrinterService19- Throws:
jpos.JposException
-
getPageModePrintArea
- Specified by:
getPageModePrintAreain interfacejpos.services.POSPrinterService19- Throws:
jpos.JposException
-
setPageModePrintArea
- Specified by:
setPageModePrintAreain interfacejpos.services.POSPrinterService19- Throws:
jpos.JposException
-
getPageModePrintDirection
public int getPageModePrintDirection() throws jpos.JposException- Specified by:
getPageModePrintDirectionin interfacejpos.services.POSPrinterService19- Throws:
jpos.JposException
-
setPageModePrintDirection
public void setPageModePrintDirection(int i) throws jpos.JposException- Specified by:
setPageModePrintDirectionin interfacejpos.services.POSPrinterService19- Throws:
jpos.JposException
-
getPageModeStation
public int getPageModeStation() throws jpos.JposException- Specified by:
getPageModeStationin interfacejpos.services.POSPrinterService19- Throws:
jpos.JposException
-
setPageModeStation
public void setPageModeStation(int i) throws jpos.JposException- Specified by:
setPageModeStationin interfacejpos.services.POSPrinterService19- Throws:
jpos.JposException
-
getPageModeVerticalPosition
public int getPageModeVerticalPosition() throws jpos.JposException- Specified by:
getPageModeVerticalPositionin interfacejpos.services.POSPrinterService19- Throws:
jpos.JposException
-
setPageModeVerticalPosition
public void setPageModeVerticalPosition(int i) throws jpos.JposException- Specified by:
setPageModeVerticalPositionin interfacejpos.services.POSPrinterService19- Throws:
jpos.JposException
-
getRecBarCodeRotationList
- Specified by:
getRecBarCodeRotationListin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getRecBitmapRotationList
- Specified by:
getRecBitmapRotationListin interfacejpos.services.POSPrinterService17- Throws:
jpos.JposException
-
getRecCartridgeState
public int getRecCartridgeState() throws jpos.JposException- Specified by:
getRecCartridgeStatein interfacejpos.services.POSPrinterService15- Throws:
jpos.JposException
-
getRecCurrentCartridge
public int getRecCurrentCartridge() throws jpos.JposException- Specified by:
getRecCurrentCartridgein interfacejpos.services.POSPrinterService15- Throws:
jpos.JposException
-
setRecCurrentCartridge
public void setRecCurrentCartridge(int i) throws jpos.JposException- Specified by:
setRecCurrentCartridgein interfacejpos.services.POSPrinterService15- Throws:
jpos.JposException
-
getRecEmpty
public boolean getRecEmpty() throws jpos.JposException- Specified by:
getRecEmptyin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getRecLetterQuality
public boolean getRecLetterQuality() throws jpos.JposException- Specified by:
getRecLetterQualityin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
setRecLetterQuality
public void setRecLetterQuality(boolean b) throws jpos.JposException- Specified by:
setRecLetterQualityin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getRecLineChars
public int getRecLineChars() throws jpos.JposException- Specified by:
getRecLineCharsin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
setRecLineChars
public void setRecLineChars(int i) throws jpos.JposException- Specified by:
setRecLineCharsin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getRecLineCharsList
- Specified by:
getRecLineCharsListin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getRecLineHeight
public int getRecLineHeight() throws jpos.JposException- Specified by:
getRecLineHeightin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
setRecLineHeight
public void setRecLineHeight(int i) throws jpos.JposException- Specified by:
setRecLineHeightin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getRecLineSpacing
public int getRecLineSpacing() throws jpos.JposException- Specified by:
getRecLineSpacingin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
setRecLineSpacing
public void setRecLineSpacing(int i) throws jpos.JposException- Specified by:
setRecLineSpacingin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getRecLinesToPaperCut
public int getRecLinesToPaperCut() throws jpos.JposException- Specified by:
getRecLinesToPaperCutin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getRecLineWidth
public int getRecLineWidth() throws jpos.JposException- Specified by:
getRecLineWidthin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getRecNearEnd
public boolean getRecNearEnd() throws jpos.JposException- Specified by:
getRecNearEndin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getRecSidewaysMaxChars
public int getRecSidewaysMaxChars() throws jpos.JposException- Specified by:
getRecSidewaysMaxCharsin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getRecSidewaysMaxLines
public int getRecSidewaysMaxLines() throws jpos.JposException- Specified by:
getRecSidewaysMaxLinesin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getRotateSpecial
public int getRotateSpecial() throws jpos.JposException- Specified by:
getRotateSpecialin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
setRotateSpecial
public void setRotateSpecial(int i) throws jpos.JposException- Specified by:
setRotateSpecialin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getSlpBarCodeRotationList
- Specified by:
getSlpBarCodeRotationListin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getSlpBitmapRotationList
- Specified by:
getSlpBitmapRotationListin interfacejpos.services.POSPrinterService17- Throws:
jpos.JposException
-
getSlpCartridgeState
public int getSlpCartridgeState() throws jpos.JposException- Specified by:
getSlpCartridgeStatein interfacejpos.services.POSPrinterService15- Throws:
jpos.JposException
-
getSlpCurrentCartridge
public int getSlpCurrentCartridge() throws jpos.JposException- Specified by:
getSlpCurrentCartridgein interfacejpos.services.POSPrinterService15- Throws:
jpos.JposException
-
setSlpCurrentCartridge
public void setSlpCurrentCartridge(int i) throws jpos.JposException- Specified by:
setSlpCurrentCartridgein interfacejpos.services.POSPrinterService15- Throws:
jpos.JposException
-
getSlpEmpty
public boolean getSlpEmpty() throws jpos.JposException- Specified by:
getSlpEmptyin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getSlpLetterQuality
public boolean getSlpLetterQuality() throws jpos.JposException- Specified by:
getSlpLetterQualityin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
setSlpLetterQuality
public void setSlpLetterQuality(boolean b) throws jpos.JposException- Specified by:
setSlpLetterQualityin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getSlpLineChars
public int getSlpLineChars() throws jpos.JposException- Specified by:
getSlpLineCharsin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
setSlpLineChars
public void setSlpLineChars(int i) throws jpos.JposException- Specified by:
setSlpLineCharsin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getSlpLineCharsList
- Specified by:
getSlpLineCharsListin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getSlpLineHeight
public int getSlpLineHeight() throws jpos.JposException- Specified by:
getSlpLineHeightin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
setSlpLineHeight
public void setSlpLineHeight(int i) throws jpos.JposException- Specified by:
setSlpLineHeightin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getSlpLinesNearEndToEnd
public int getSlpLinesNearEndToEnd() throws jpos.JposException- Specified by:
getSlpLinesNearEndToEndin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getSlpLineSpacing
public int getSlpLineSpacing() throws jpos.JposException- Specified by:
getSlpLineSpacingin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
setSlpLineSpacing
public void setSlpLineSpacing(int i) throws jpos.JposException- Specified by:
setSlpLineSpacingin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getSlpLineWidth
public int getSlpLineWidth() throws jpos.JposException- Specified by:
getSlpLineWidthin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getSlpMaxLines
public int getSlpMaxLines() throws jpos.JposException- Specified by:
getSlpMaxLinesin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getSlpNearEnd
public boolean getSlpNearEnd() throws jpos.JposException- Specified by:
getSlpNearEndin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getSlpPrintSide
public int getSlpPrintSide() throws jpos.JposException- Specified by:
getSlpPrintSidein interfacejpos.services.POSPrinterService15- Throws:
jpos.JposException
-
getSlpSidewaysMaxChars
public int getSlpSidewaysMaxChars() throws jpos.JposException- Specified by:
getSlpSidewaysMaxCharsin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
getSlpSidewaysMaxLines
public int getSlpSidewaysMaxLines() throws jpos.JposException- Specified by:
getSlpSidewaysMaxLinesin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
beginInsertion
public void beginInsertion(int timeout) throws jpos.JposException- Specified by:
beginInsertionin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
beginRemoval
public void beginRemoval(int timeout) throws jpos.JposException- Specified by:
beginRemovalin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
changePrintSide
public void changePrintSide(int side) throws jpos.JposException- Specified by:
changePrintSidein interfacejpos.services.POSPrinterService15- Throws:
jpos.JposException
-
clearPrintArea
public void clearPrintArea() throws jpos.JposException- Specified by:
clearPrintAreain interfacejpos.services.POSPrinterService19- Throws:
jpos.JposException
-
endInsertion
public void endInsertion() throws jpos.JposException- Specified by:
endInsertionin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
endRemoval
public void endRemoval() throws jpos.JposException- Specified by:
endRemovalin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
printImmediate
- Specified by:
printImmediatein 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:
setBitmapin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
setLogo
- Specified by:
setLogoin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
validateData
- Specified by:
validateDatain interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
cutPaper
public void cutPaper(int percentage) throws jpos.JposException- Specified by:
cutPaperin 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:
drawRuledLinein interfacejpos.services.POSPrinterService113- Throws:
jpos.JposException
-
markFeed
public void markFeed(int type) throws jpos.JposException- Specified by:
markFeedin 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:
printBarCodein interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
printBitmap
public void printBitmap(int station, String fileName, int width, int alignment) throws jpos.JposException- Specified by:
printBitmapin 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:
printMemoryBitmapin interfacejpos.services.POSPrinterService110- Throws:
jpos.JposException
-
printNormal
- Specified by:
printNormalin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
printTwoNormal
- Specified by:
printTwoNormalin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
pageModePrint
public void pageModePrint(int control) throws jpos.JposException- Specified by:
pageModePrintin interfacejpos.services.POSPrinterService19- Throws:
jpos.JposException
-
rotatePrint
public void rotatePrint(int station, int rotation) throws jpos.JposException- Specified by:
rotatePrintin interfacejpos.services.POSPrinterService12- Throws:
jpos.JposException
-
transactionPrint
public void transactionPrint(int station, int control) throws jpos.JposException- Specified by:
transactionPrintin 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.
-