Class PointCardRWService
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposBase
de.gmxhome.conrad.jpos.jpos_base.pointcardrw.PointCardRWService
- All Implemented Interfaces:
jpos.loader.JposServiceInstance,jpos.services.BaseService,jpos.services.PointCardRWService110,jpos.services.PointCardRWService111,jpos.services.PointCardRWService112,jpos.services.PointCardRWService113,jpos.services.PointCardRWService114,jpos.services.PointCardRWService115,jpos.services.PointCardRWService116,jpos.services.PointCardRWService15,jpos.services.PointCardRWService16,jpos.services.PointCardRWService17,jpos.services.PointCardRWService18,jpos.services.PointCardRWService19
PointCardRW service implementation. For more details about getter, setter and method implementations,
see JposBase.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classClass describing alignment escape sequences ESC|xA, where x is one of c or r.static classClass describing embedded escape sequences ESC|[*]#E.static classClass describing font typeface selection escape sequences ESC|#fT.static classClass describing normalize escape sequences ESC|N.static classClass describing scaling escape sequences ESC|[#][x]C, where x is one of h or v.static classClass describing simple attribute setting escape sequences ESC|xC, where x is one of b, i or rv.static classClass describing line escape sequences ESC|[!][#]xC, where x is one of u or st.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 PointCardRWInterface for point card reader / writer 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
ConstructorsConstructorDescriptionPointCardRWService(PointCardRWProperties props, JposDevice device)Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidbeginInsertion(int timeout)voidbeginRemoval(int timeout)voidvoidclearPrintWrite(int kind, int hposition, int vposition, int width, int height)voidvoidbooleanintintbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanintintintintintintintintbooleanintintintintintintintintintintintintintvoidGenerates logging message for internal property array representing a range of UPOS properties.voidGenerates logging message for internal property array representing a range of UPOS properties.outputDataParts(String data)Parses output data for escape sequences.voidChecks whether the given string holds data that cannot be printed precisely on slip as expected.voidprintWrite(int kind, int hposition, int vposition, String data)voidrotatePrint(int rotation)voidsetCharacterSet(int code)voidsetLineChars(int chars)voidsetLineHeight(int height)voidsetLineSpacing(int spacing)voidsetMapCharacterSet(boolean flag)voidsetMapMode(int mode)voidsetTracksToRead(int tracks)voidsetTracksToWrite(int tracks)voidsetWrite1Data(String trackdata)voidsetWrite2Data(String trackdata)voidsetWrite3Data(String trackdata)voidsetWrite4Data(String trackdata)voidsetWrite5Data(String trackdata)voidsetWrite6Data(String trackdata)voidvalidateData(String data)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, clearOutput, 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.PointCardRWService110
clearInputPropertiesMethods inherited from interface jpos.services.PointCardRWService15
clearInput, clearOutput, getCapPowerReporting, getDataCount, getDataEventEnabled, getOutputID, getPowerNotify, getPowerState, setDataEventEnabled, setPowerNotifyMethods inherited from interface jpos.services.PointCardRWService18
getCapStatisticsReporting, getCapUpdateStatistics, resetStatistics, retrieveStatistics, updateStatisticsMethods inherited from interface jpos.services.PointCardRWService19
compareFirmwareVersion, getCapCompareFirmwareVersion, getCapUpdateFirmware, updateFirmware
-
Field Details
-
PointCardRW
Instance of a class implementing the PointCardRWInterface for point card reader / writer specific setter and method calls bound to the property set. Almost always the same object as Data.
-
-
Constructor Details
-
PointCardRWService
Constructor. Stores given property set and device implementation object.- Parameters:
props- Property set.device- Device implementation object.
-
-
Method Details
-
getCapMapCharacterSet
public boolean getCapMapCharacterSet() throws jpos.JposException- Specified by:
getCapMapCharacterSetin interfacejpos.services.PointCardRWService17- Throws:
jpos.JposException
-
getMapCharacterSet
public boolean getMapCharacterSet() throws jpos.JposException- Specified by:
getMapCharacterSetin interfacejpos.services.PointCardRWService17- Throws:
jpos.JposException
-
getCapBold
public boolean getCapBold() throws jpos.JposException- Specified by:
getCapBoldin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getCapCardEntranceSensor
public int getCapCardEntranceSensor() throws jpos.JposException- Specified by:
getCapCardEntranceSensorin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getCapCharacterSet
public int getCapCharacterSet() throws jpos.JposException- Specified by:
getCapCharacterSetin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getCapCleanCard
public boolean getCapCleanCard() throws jpos.JposException- Specified by:
getCapCleanCardin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getCapClearPrint
public boolean getCapClearPrint() throws jpos.JposException- Specified by:
getCapClearPrintin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getCapDhigh
public boolean getCapDhigh() throws jpos.JposException- Specified by:
getCapDhighin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getCapDwide
public boolean getCapDwide() throws jpos.JposException- Specified by:
getCapDwidein interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getCapDwideDhigh
public boolean getCapDwideDhigh() throws jpos.JposException- Specified by:
getCapDwideDhighin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getCapItalic
public boolean getCapItalic() throws jpos.JposException- Specified by:
getCapItalicin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getCapLeft90
public boolean getCapLeft90() throws jpos.JposException- Specified by:
getCapLeft90in interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getCapPrint
public boolean getCapPrint() throws jpos.JposException- Specified by:
getCapPrintin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getCapPrintMode
public boolean getCapPrintMode() throws jpos.JposException- Specified by:
getCapPrintModein interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getCapRight90
public boolean getCapRight90() throws jpos.JposException- Specified by:
getCapRight90in interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getCapRotate180
public boolean getCapRotate180() throws jpos.JposException- Specified by:
getCapRotate180in interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getCapTracksToRead
public int getCapTracksToRead() throws jpos.JposException- Specified by:
getCapTracksToReadin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getCapTracksToWrite
public int getCapTracksToWrite() throws jpos.JposException- Specified by:
getCapTracksToWritein interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getCardState
public int getCardState() throws jpos.JposException- Specified by:
getCardStatein interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getCharacterSet
public int getCharacterSet() throws jpos.JposException- Specified by:
getCharacterSetin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getCharacterSetList
- Specified by:
getCharacterSetListin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getFontTypeFaceList
- Specified by:
getFontTypeFaceListin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getLineChars
public int getLineChars() throws jpos.JposException- Specified by:
getLineCharsin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getLineCharsList
- Specified by:
getLineCharsListin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getLineHeight
public int getLineHeight() throws jpos.JposException- Specified by:
getLineHeightin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getLineSpacing
public int getLineSpacing() throws jpos.JposException- Specified by:
getLineSpacingin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getLineWidth
public int getLineWidth() throws jpos.JposException- Specified by:
getLineWidthin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getMapMode
public int getMapMode() throws jpos.JposException- Specified by:
getMapModein interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getMaxLines
public int getMaxLines() throws jpos.JposException- Specified by:
getMaxLinesin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getPrintHeight
public int getPrintHeight() throws jpos.JposException- Specified by:
getPrintHeightin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getReadState1
public int getReadState1() throws jpos.JposException- Specified by:
getReadState1in interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getReadState2
public int getReadState2() throws jpos.JposException- Specified by:
getReadState2in interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getRecvLength1
public int getRecvLength1() throws jpos.JposException- Specified by:
getRecvLength1in interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getRecvLength2
public int getRecvLength2() throws jpos.JposException- Specified by:
getRecvLength2in interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getSidewaysMaxChars
public int getSidewaysMaxChars() throws jpos.JposException- Specified by:
getSidewaysMaxCharsin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getSidewaysMaxLines
public int getSidewaysMaxLines() throws jpos.JposException- Specified by:
getSidewaysMaxLinesin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getTracksToRead
public int getTracksToRead() throws jpos.JposException- Specified by:
getTracksToReadin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getTracksToWrite
public int getTracksToWrite() throws jpos.JposException- Specified by:
getTracksToWritein interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getTrack1Data
- Specified by:
getTrack1Datain interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getTrack2Data
- Specified by:
getTrack2Datain interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getTrack3Data
- Specified by:
getTrack3Datain interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getTrack4Data
- Specified by:
getTrack4Datain interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getTrack5Data
- Specified by:
getTrack5Datain interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getTrack6Data
- Specified by:
getTrack6Datain interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getWriteState1
public int getWriteState1() throws jpos.JposException- Specified by:
getWriteState1in interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getWriteState2
public int getWriteState2() throws jpos.JposException- Specified by:
getWriteState2in interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getWrite1Data
- Specified by:
getWrite1Datain interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getWrite2Data
- Specified by:
getWrite2Datain interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getWrite3Data
- Specified by:
getWrite3Datain interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getWrite4Data
- Specified by:
getWrite4Datain interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getWrite5Data
- Specified by:
getWrite5Datain interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
getWrite6Data
- Specified by:
getWrite6Datain interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
setCharacterSet
public void setCharacterSet(int code) throws jpos.JposException- Specified by:
setCharacterSetin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
setLineChars
public void setLineChars(int chars) throws jpos.JposException- Specified by:
setLineCharsin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
setLineHeight
public void setLineHeight(int height) throws jpos.JposException- Specified by:
setLineHeightin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
setLineSpacing
public void setLineSpacing(int spacing) throws jpos.JposException- Specified by:
setLineSpacingin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
setMapCharacterSet
public void setMapCharacterSet(boolean flag) throws jpos.JposException- Specified by:
setMapCharacterSetin interfacejpos.services.PointCardRWService17- Throws:
jpos.JposException
-
setMapMode
public void setMapMode(int mode) throws jpos.JposException- Specified by:
setMapModein interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
setTracksToRead
public void setTracksToRead(int tracks) throws jpos.JposException- Specified by:
setTracksToReadin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
setTracksToWrite
public void setTracksToWrite(int tracks) throws jpos.JposException- Specified by:
setTracksToWritein interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
setWrite1Data
- Specified by:
setWrite1Datain interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
setWrite2Data
- Specified by:
setWrite2Datain interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
setWrite3Data
- Specified by:
setWrite3Datain interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
setWrite4Data
- Specified by:
setWrite4Datain interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
setWrite5Data
- Specified by:
setWrite5Datain interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
setWrite6Data
- Specified by:
setWrite6Datain interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
beginInsertion
public void beginInsertion(int timeout) throws jpos.JposException- Specified by:
beginInsertionin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
beginRemoval
public void beginRemoval(int timeout) throws jpos.JposException- Specified by:
beginRemovalin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
cleanCard
public void cleanCard() throws jpos.JposException- Specified by:
cleanCardin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
clearPrintWrite
public void clearPrintWrite(int kind, int hposition, int vposition, int width, int height) throws jpos.JposException- Specified by:
clearPrintWritein interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
endInsertion
public void endInsertion() throws jpos.JposException- Specified by:
endInsertionin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
endRemoval
public void endRemoval() throws jpos.JposException- Specified by:
endRemovalin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
rotatePrint
public void rotatePrint(int rotation) throws jpos.JposException- Specified by:
rotatePrintin interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
validateData
- Specified by:
validateDatain interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
printWrite
public void printWrite(int kind, int hposition, int vposition, String data) throws jpos.JposException- Specified by:
printWritein interfacejpos.services.PointCardRWService15- Throws:
jpos.JposException
-
outputDataParts
Parses output data for escape sequences. See UPOS specification for PointCardRW, 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.
- EscNormalize - Class containing information about details of a normalize command. See EscNormalize for details.
- EscEmbedded - Class containing information about details of a embedded data command. See EscEmbedded 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.
- 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.
-
plausibilityCheckData
public void plausibilityCheckData(List<PointCardRWService.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.
-
logGet
Generates logging message for internal property array representing a range of UPOS properties.- Parameters:
obj- The array that contains the property range.index- The index of the array to be logged.mask- The UPOS property name mask, e.g for property Track1 ... Track3 this can be Track%d.modifier- The value to be formatted. An example: For mask = Track%d and modifier 2, the resulting property name would be Track2.
-
logSet
Generates logging message for internal property array representing a range of UPOS properties.- Parameters:
obj- The array that contains the property range.index- The index of the array to be logged.mask- The UPOS property name mask, e.g for property Track1 ... Track3 this can be Track%d.modifier- The value to be formatted. An example: For mask = Track%d and modifier 2, the resulting property name would be Track2.
-