Class PointCardRWProperties
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
de.gmxhome.conrad.jpos.jpos_base.pointcardrw.PointCardRWProperties
- All Implemented Interfaces:
JposBaseInterface,PointCardRWInterface
Class containing the point card reader / writer specific properties, their default values and default implementations of
PointCardRWInterface.
For details about properties, methods and method parameters, see UPOS specification, chapter Point Card Reader / Writer.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanUPOS property CapBold.booleanUPOS property CapCardEntranceSensor.intUPOS property CapCharacterSet.booleanUPOS property CapCleanCard.booleanUPOS property CapClearPrint.booleanUPOS property CapDhigh.booleanUPOS property CapDwide.booleanUPOS property CapDwideDhigh.booleanUPOS property CapItalic.booleanUPOS property CapLeft90.booleanUPOS property CapMapCharacterSet.booleanUPOS property CapPrint.booleanUPOS property CapPrintMode.booleanUPOS property CapRight90.booleanUPOS property CapRotate180.intUPOS property CapTracksToRead.intUPOS property CapTracksToWrite.intUPOS property CardState.intUPOS property CharacterSet.UPOS property CharacterSetList.UPOS property FontTypeFaceList.intUPOS property LineChars.UPOS property LineCharsList.intUPOS property LineHeight.intUPOS property LineSpacing.intUPOS property LineWidth.booleanUPOS property MapCharacterSet.intUPOS property MapMode.intUPOS property MaxLines.intUPOS property PrintHeight.Integer[]UPOS properties ReadState1 and ReadState1.Integer[]UPOS property RecvLength1 and RecvLength2.intUPOS property SidewaysMaxChars.intUPOS property SidewaysMaxLines.String[]Internal property TrackData.intUPOS property TracksToRead.intUPOS property TracksToWrite.String[]Internal property WriteData.Integer[]UPOS property WriteState1 and WriteState2.Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
AllowAlwaysSetProperties, AllowDeprecatedMethods, AsyncInputActive, AsyncMode, AutoDisable, CapStatisticsReporting, CapUpdateStatistics, CheckHealthText, Claimed, Claiming, ClaimWaiters, CurrentCommands, CurrentUnitID, DataCount, DataEventEnabled, DataEventList, Device, DeviceEnabled, DeviceServiceDescription, DeviceServiceVersion, DevProps, ErrorString, ErrorUnits, EventCB, EventList, EventSource, EventString, EventUnitID, EventUnits, ExclusiveAllowed, ExclusiveNo, ExclusiveUse, ExclusiveYes, FirstEnableHappened, FlagWhenIdle, FlagWhenIdleStatusValue, FreezeEvents, Index, LogicalName, MaximumConfirmationEventWaitingTime, OutputID, PowerNotify, PowerState, SerializedRequestRunner, SerializedRequests, State, StrictFIFOEventHandling, SuspendedCommands, SuspendedConcurrentCommands, UnitsOnline, UsesSubsystemUnits -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeginInsertion(int i)Final part of BeginInsertion method.voidbeginRemoval(int timeout)Final part of BeginRemoval method.voidcharacterSet(int code)Final part of setting CharacterSet.voidFinal part of DestroyWindow method.voidclearPrintWrite(int kind, int hposition, int vposition, int width, int height)Final part of ClearPrintWrite method.voidFinal part of EndInsertion method.voidFinal part of EndRemoval method.intgetReadState(int trackNumber)get the state of the specified track from property ReadState1 or ReadState2.intgetRecvLength(int trackNumber)get the length of the specified track from property RecvLength1 or RecvLength2.intgetWriteState(int trackNumber)get the state of the specified track from property WriteState1 or WriteState2.voidlineChars(int chars)Final part of setting LineChars.voidlineHeight(int height)Final part of setting LineHeight.voidlineSpacing(int spacing)Final part of setting LineSpacing.voidmapCharacterSet(boolean flag)Final part of setting MapCharacterSet.voidmapMode(int mode)Final part of setting MapMode.printWrite(int kind, int hposition, int vposition, String data)Validation part of PrintWrite method.voidprintWrite(PrintWrite request)Final part of PrintWrite method.voidrotatePrint(int rotation)Final part of RotatePrint method.voidsetReadState(int trackNumber, int value)Set the state given for the specified track into property ReadState1 or ReadState2.voidsetRecvLength(int trackNumber, int value)Set the length given for the specified track into property RecvLength1 or RecvLength2.voidsetWriteState(int trackNumber, int value)Set the state given for the specified track into property WriteState1 or WriteState2.voidtracksToRead(int tracks)Final part of setting TracksToRead.voidtracksToWrite(int tracks)Final part of setting TracksToWrite.voidvalidateData(PointCardRWService.EscAlignment escAlignment)Validate alignment sequence.voidvalidateData(PointCardRWService.EscEmbedded escEmbedded)Validate embedded data sequence.voidvalidateData(PointCardRWService.EscFontTypeface escFontTypeface)Validate font typeface selection sequence.voidvalidateData(PointCardRWService.EscNormalize escNormalize)Validate normalize escape sequence.voidvalidateData(PointCardRWService.EscScale escScale)Validate print scale sequence.voidvalidateData(PointCardRWService.EscSimple escSimple)Validate attribute setting sequences.voidvalidateData(PointCardRWService.EscUnderline escUnderline)Validate combined underline printing sequence.voidvalidateData(PointCardRWService.EscUnknown printData)Validate unknown sequence.voidvalidateData(PointCardRWService.PrintData printData)Validate printable character sequence.voidvalidateData(String data)Final part of DestroyWindow method.voidwrite1Data(String trackdata)Final part of setting Write1Data.voidwrite2Data(String trackdata)Final part of setting Write2Data.voidwrite3Data(String trackdata)Final part of setting Write3Data.voidwrite4Data(String trackdata)Final part of setting Write4Data.voidwrite5Data(String trackdata)Final part of setting Write5Data.voidwrite6Data(String trackdata)Final part of setting Write6Data.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
addProperties, asyncMode, attachWaiter, autoDisable, checkForDeprecation, checkHealth, checkProperties, claim, clearDataProperties, clearErrorProperties, clearInput, clearOutput, clearOutputErrorProperties, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, getClaimingInstance, handlePowerStateOnEnable, initOnClaim, initOnEnable, initOnFirstEnable, initOnOpen, newJposOutputRequest, open, powerNotify, release, releaseWaiter, removeFromPropertySetList, resetStatistics, retrieveStatistics, retryInput, retryOutput, signalWaiter, unitDataCount, updateFirmware, updateFirmware, updateStatistics, waitWaiterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.gmxhome.conrad.jpos.jpos_base.JposBaseInterface
asyncMode, autoDisable, checkHealth, claim, clearInput, clearOutput, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, handlePowerStateOnEnable, newJposOutputRequest, open, powerNotify, release, removeFromPropertySetList, resetStatistics, retrieveStatistics, retryInput, retryOutput, unitDataCount, updateFirmware, updateFirmware, updateStatistics
-
Field Details
-
CapBold
public boolean CapBoldUPOS property CapBold. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapCardEntranceSensor
public boolean CapCardEntranceSensorUPOS property CapCardEntranceSensor. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. Keep in mind that this value will be automatically converted to JPOS_TRUE or JPOS_FALSE. -
CapCharacterSet
public int CapCharacterSetUPOS property CapCharacterSet. Default: CCS_ASCII. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapCleanCard
public boolean CapCleanCardUPOS property CapCleanCard. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapClearPrint
public boolean CapClearPrintUPOS property CapClearPrint. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapDhigh
public boolean CapDhighUPOS property CapDhigh. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapDwide
public boolean CapDwideUPOS property CapDwide. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapDwideDhigh
public boolean CapDwideDhighUPOS property CapDwideDhigh. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapItalic
public boolean CapItalicUPOS property CapItalic. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapLeft90
public boolean CapLeft90UPOS property CapLeft90. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapMapCharacterSet
public boolean CapMapCharacterSetUPOS property CapMapCharacterSet. Default: true. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapPrint
public boolean CapPrintUPOS property CapPrint. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapPrintMode
public boolean CapPrintModeUPOS property CapPrintMode. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRight90
public boolean CapRight90UPOS property CapRight90. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRotate180
public boolean CapRotate180UPOS property CapRotate180. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapTracksToRead
public int CapTracksToReadUPOS property CapTracksToRead. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapTracksToWrite
public int CapTracksToWriteUPOS property CapTracksToWrite. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
CardState
public int CardStateUPOS property CardState. Default: STATE_NOCARD. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CharacterSet
public int CharacterSetUPOS property CharacterSet. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method if CapPrint is true. -
CharacterSetList
UPOS property CharacterSetList. Default: An empty string. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
FontTypeFaceList
UPOS property FontTypeFaceList. Default: An empty string. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
LineChars
public int LineCharsUPOS property LineChars. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
LineCharsList
UPOS property LineCharsList. Default: An empty string. Must be overwritten by objects derived from JposDevice within the changeDefaults method if CapPrint is true. -
LineHeight
public int LineHeightUPOS property LineHeight. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
LineSpacing
public int LineSpacingUPOS property LineSpacing. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
LineWidth
public int LineWidthUPOS property LineWidth. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
MapCharacterSet
public boolean MapCharacterSetUPOS property MapCharacterSet. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
MapMode
public int MapModeUPOS property MapMode. Default: MM_DOTS. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
MaxLines
public int MaxLinesUPOS property MaxLines. Default: 0. Must be overwritten by objects derived from JposDevice within the changeDefaults method if CapPrint is true. -
PrintHeight
public int PrintHeightUPOS property PrintHeight. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
ReadState
UPOS properties ReadState1 and ReadState1. Default: { 0, 0 }. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
RecvLength
UPOS property RecvLength1 and RecvLength2. Default: { 0, 0 }. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
SidewaysMaxChars
public int SidewaysMaxCharsUPOS property SidewaysMaxChars. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
SidewaysMaxLines
public int SidewaysMaxLinesUPOS property SidewaysMaxLines. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
TracksToRead
public int TracksToReadUPOS property TracksToRead. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
TracksToWrite
public int TracksToWriteUPOS property TracksToWrite. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
TrackData
Internal property TrackData. Contains the values of the UPOS propertier Track1Data, Track2Data, Track3Data, Track4Data, Track5Data and Track6Data. TrackData[N-1] corresponds to TrackNData. -
WriteState
UPOS property WriteState1 and WriteState2. Default: { 0, 0 }. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
WriteData
Internal property WriteData. Contains the values of the UPOS properties Write1Data, Write2Data, Write3Data, Write4Data, Write5Data and Write6Data. WriteData[N-1] corresponds to WriteNData.
-
-
Constructor Details
-
PointCardRWProperties
protected PointCardRWProperties(int dev)Constructor.- Parameters:
dev- Device index
-
-
Method Details
-
setReadState
public void setReadState(int trackNumber, int value)Set the state given for the specified track into property ReadState1 or ReadState2.- Parameters:
trackNumber- Number of the trackvalue- New state of the track specified by trackNumber
-
getReadState
public int getReadState(int trackNumber)get the state of the specified track from property ReadState1 or ReadState2.- Parameters:
trackNumber- Number of the track.- Returns:
- Read state of the specified track.
-
setWriteState
public void setWriteState(int trackNumber, int value)Set the state given for the specified track into property WriteState1 or WriteState2.- Parameters:
trackNumber- Number of the trackvalue- New state of the track specified by trackNumber
-
getWriteState
public int getWriteState(int trackNumber)get the state of the specified track from property WriteState1 or WriteState2.- Parameters:
trackNumber- Number of the track.- Returns:
- Write state of the specified track.
-
setRecvLength
public void setRecvLength(int trackNumber, int value)Set the length given for the specified track into property RecvLength1 or RecvLength2.- Parameters:
trackNumber- Number of the trackvalue- New state of the track specified by trackNumber
-
getRecvLength
public int getRecvLength(int trackNumber)get the length of the specified track from property RecvLength1 or RecvLength2.- Parameters:
trackNumber- Number of the track.- Returns:
- Track length
-
characterSet
public void characterSet(int code) throws jpos.JposExceptionDescription copied from interface:PointCardRWInterfaceFinal part of setting CharacterSet. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapPrint is true,
- code equals one of the values specified in CharacterSetList.
- Specified by:
characterSetin interfacePointCardRWInterface- Parameters:
code- New CharacterSet value- Throws:
jpos.JposException- If an error occurs
-
lineChars
public void lineChars(int chars) throws jpos.JposExceptionDescription copied from interface:PointCardRWInterfaceFinal part of setting LineChars. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapPrint is true,
- chars is above zero but not above the maximum of all values specified in LineCharsList.
- Specified by:
lineCharsin interfacePointCardRWInterface- Parameters:
chars- New LineChars value- Throws:
jpos.JposException- If an error occurs
-
lineHeight
public void lineHeight(int height) throws jpos.JposExceptionDescription copied from interface:PointCardRWInterfaceFinal part of setting LineHeight. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapPrint is true,
- height is above zero.
- Specified by:
lineHeightin interfacePointCardRWInterface- Parameters:
height- New LineHeight value- Throws:
jpos.JposException- If an error occurs
-
lineSpacing
public void lineSpacing(int spacing) throws jpos.JposExceptionDescription copied from interface:PointCardRWInterfaceFinal part of setting LineSpacing. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapPrint is true,
- spacing is above zero.
- Specified by:
lineSpacingin interfacePointCardRWInterface- Parameters:
spacing- New LineSpacing value- Throws:
jpos.JposException- If an error occurs
-
mapCharacterSet
public void mapCharacterSet(boolean flag) throws jpos.JposExceptionDescription copied from interface:PointCardRWInterfaceFinal part of setting MapCharacterSet. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapPrint is true,
- CapMapCharacterSet is true or flag is false.
- Specified by:
mapCharacterSetin interfacePointCardRWInterface- Parameters:
flag- New MapCharacterSet value- Throws:
jpos.JposException- If an error occurs
-
mapMode
public void mapMode(int mode) throws jpos.JposExceptionDescription copied from interface:PointCardRWInterfaceFinal part of setting MapMode. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- mode is one of MM_DOTS, MM_TWIPS, MM_ENGLISH and MM_METRIC.
- Specified by:
mapModein interfacePointCardRWInterface- Parameters:
mode- New MapMode value- Throws:
jpos.JposException- If an error occurs
-
tracksToRead
public void tracksToRead(int tracks) throws jpos.JposExceptionDescription copied from interface:PointCardRWInterfaceFinal part of setting TracksToRead. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Only tracks that have been specified in CapTracksToRead are specified in tracks.
- Specified by:
tracksToReadin interfacePointCardRWInterface- Parameters:
tracks- New TracksToRead value- Throws:
jpos.JposException- If an error occurs
-
tracksToWrite
public void tracksToWrite(int tracks) throws jpos.JposExceptionDescription copied from interface:PointCardRWInterfaceFinal part of setting TracksToWrite. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Only tracks that have been specified in CapTracksToWrite are specified in tracks.
- Specified by:
tracksToWritein interfacePointCardRWInterface- Parameters:
tracks- New TracksToWrite value- Throws:
jpos.JposException- If an error occurs
-
write1Data
Description copied from interface:PointCardRWInterfaceFinal part of setting Write1Data. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Bit PCRW_TRACK1 is set in TracksToWrite.
- Specified by:
write1Datain interfacePointCardRWInterface- Parameters:
trackdata- New Write1Data value- Throws:
jpos.JposException- If an error occurs
-
write2Data
Description copied from interface:PointCardRWInterfaceFinal part of setting Write2Data. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Bit PCRW_TRACK2 is set in TracksToWrite.
- Specified by:
write2Datain interfacePointCardRWInterface- Parameters:
trackdata- New Write2Data value- Throws:
jpos.JposException- If an error occurs
-
write3Data
Description copied from interface:PointCardRWInterfaceFinal part of setting Write3Data. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Bit PCRW_TRACK3 is set in TracksToWrite.
- Specified by:
write3Datain interfacePointCardRWInterface- Parameters:
trackdata- New Write3Data value- Throws:
jpos.JposException- If an error occurs
-
write4Data
Description copied from interface:PointCardRWInterfaceFinal part of setting Write4Data. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Bit PCRW_TRACK4 is set in TracksToWrite.
- Specified by:
write4Datain interfacePointCardRWInterface- Parameters:
trackdata- New Write4Data value- Throws:
jpos.JposException- If an error occurs
-
write5Data
Description copied from interface:PointCardRWInterfaceFinal part of setting Write5Data. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Bit PCRW_TRACK5 is set in TracksToWrite.
- Specified by:
write5Datain interfacePointCardRWInterface- Parameters:
trackdata- New Write5Data value- Throws:
jpos.JposException- If an error occurs
-
write6Data
Description copied from interface:PointCardRWInterfaceFinal part of setting Write6Data. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Bit PCRW_TRACK6 is set in TracksToWrite.
- Specified by:
write6Datain interfacePointCardRWInterface- Parameters:
trackdata- New Write6Data value- Throws:
jpos.JposException- If an error occurs
-
beginInsertion
public void beginInsertion(int i) throws jpos.JposExceptionDescription copied from interface:PointCardRWInterfaceFinal part of BeginInsertion method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- No asynchronous output is in progress,
- timeout is above zero or FOREVER.
- Specified by:
beginInsertionin interfacePointCardRWInterface- Parameters:
i- Maximum time to wait for card insertion.- Throws:
jpos.JposException- If an error occurs.
-
beginRemoval
public void beginRemoval(int timeout) throws jpos.JposExceptionDescription copied from interface:PointCardRWInterfaceFinal part of BeginRemoval method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- No asynchronous output is in progress,
- timeout is above zero or FOREVER.
- Specified by:
beginRemovalin interfacePointCardRWInterface- Parameters:
timeout- Maximum time to wait for card insertion.- Throws:
jpos.JposException- If an error occurs.
-
cleanCard
public void cleanCard() throws jpos.JposExceptionDescription copied from interface:PointCardRWInterfaceFinal part of DestroyWindow method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapCleanCard is true.
- Specified by:
cleanCardin interfacePointCardRWInterface- Throws:
jpos.JposException- If an error occurs.
-
clearPrintWrite
public void clearPrintWrite(int kind, int hposition, int vposition, int width, int height) throws jpos.JposExceptionDescription copied from interface:PointCardRWInterfaceFinal part of ClearPrintWrite method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- No asynchronous output is in progress,
- kind is 1, 2 or 3,
- if kind is 1 or 3:
- CapClearPrint is true,
- hposition and vposition are positive values,
- width and height are above -2.
- Specified by:
clearPrintWritein interfacePointCardRWInterface- Parameters:
kind- Parts of the point card that will be cleared. See UPOS specification.hposition- The horizontal start position for erasing the printing area.vposition- The vertical start position for erasing the printing area.width- The width used for erasing the printing area.height- The height used for erasing the printing area.- Throws:
jpos.JposException- If an error occurs.
-
endInsertion
public void endInsertion() throws jpos.JposExceptionDescription copied from interface:PointCardRWInterfaceFinal part of EndInsertion method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled.
- Specified by:
endInsertionin interfacePointCardRWInterface- Throws:
jpos.JposException- If an error occurs.
-
endRemoval
public void endRemoval() throws jpos.JposExceptionDescription copied from interface:PointCardRWInterfaceFinal part of EndRemoval method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled.
- Specified by:
endRemovalin interfacePointCardRWInterface- Throws:
jpos.JposException- If an error occurs.
-
rotatePrint
public void rotatePrint(int rotation) throws jpos.JposExceptionDescription copied from interface:PointCardRWInterfaceFinal part of RotatePrint method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapPrint is true,
- rotation is one of RP_NORMAL, RP_RIGHT90, RP_LEFT90 and RP_ROTATE180,
- The corresponding capability, CapRight90, CapLeft90 or CapRotate180, is true.
- Specified by:
rotatePrintin interfacePointCardRWInterface- Parameters:
rotation- Requested rotation.- Throws:
jpos.JposException- If an error occurs.
-
validateData
Description copied from interface:PointCardRWInterfaceFinal part of DestroyWindow method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- No asynchronous output is in progress,
- CapPrint is true.
The service developer has the choice:- data can be parsed to check whether whether parts are valid or contain conditions that require to throw a JposException with ErrorCode E_ILLEGAL or E_FAILURE and if not, to throw a JposException with ErrorCode 0. In this case, the other validateData methods should not be overriden.
- This method performs nothing. In that case, validation occurs for each escape sequence via the corresponding validateData method, and the other validation routines must be implemented if the default behavior do not match the needs.
- Specified by:
validateDatain interfacePointCardRWInterface- Parameters:
data- Print data to be checked for validity.- Throws:
jpos.JposException- If an error occurs.
-
printWrite
public PrintWrite printWrite(int kind, int hposition, int vposition, String data) throws jpos.JposExceptionDescription copied from interface:PointCardRWInterfaceValidation part of PrintWrite method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- kind is 1, 2 or 3,
- if kind is 1 or 3:
- CapPrint is true,
- hposition and vposition are positive values.
- if kind is 2 or 3:
- Property TracksToWrite contains only tracks that are contained in CapTracksToWrite as well,
- The corresponding WritexData properties are not empty strings.
- Specified by:
printWritein interfacePointCardRWInterface- Parameters:
kind- Parts of the point card that will be written or printed. See UPOS specification.hposition- The horizontal start position for printing.vposition- The vertical start position for printing.data- Print data.- Returns:
- PrintWrite object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
printWrite
Description copied from interface:PointCardRWInterfaceFinal part of PrintWrite method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintWrite object. This method will be performed asynchronously. All plausibility checks have been made before, only runtime errors can occur.
If this method performs a write operation, it must set the write status of each track via method setWriteState of the give request to ensure that property WriteState1 and WriteState2 will be set correctly in error case. Otherwise, the status of all tracks specified via TracksToWrite will be set to SUCCESS on success and to E_FAILURE on failure.- Specified by:
printWritein interfacePointCardRWInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by PrintWrite.- Throws:
jpos.JposException- If an error occurs.
-
validateData
Description copied from interface:PointCardRWInterfaceValidate unknown sequence. Default is no support. If a device supports further sequences, this method must be overwritten. The following plausibility checks will be made before this method will be called:- CapPrint is true.
- Specified by:
validateDatain interfacePointCardRWInterface- Parameters:
printData- EscUnknown object containing the sequence attributes.- Throws:
jpos.JposException- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:PointCardRWInterfaceValidate printable character sequence. ESC sequences have been filtered out. Default behavior is that all other characters with character code ≤ 0x20 are invalid. If a service should support more characters, this method must be overwritten.
The following plausibility checks will be made before this method will be called:- CapPrint is true.
- Specified by:
validateDatain interfacePointCardRWInterface- Parameters:
printData- Data to be printed.- Throws:
jpos.JposException- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:PointCardRWInterfaceValidate embedded data sequence. For details, see UPOS specification of ESC|#E. Default behavior is that the given sequence is valid. The following plausibility checks will be made before this method will be called:- CapPrint is true.
- Specified by:
validateDatain interfacePointCardRWInterface- Parameters:
escEmbedded- EscEmbedded object containing sequence attributes.- Throws:
jpos.JposException- For details, see UPOS method ValidateData.
-
validateData
public void validateData(PointCardRWService.EscFontTypeface escFontTypeface) throws jpos.JposExceptionDescription copied from interface:PointCardRWInterfaceValidate font typeface selection sequence. For details, see UPOS specification of ESC|#fT. Default behavior is to support all type fonts specified in FontTypefaceList. The following plausibility checks will be made before this method will be called:- CapPrint is true,
- EscFontTypeface attribute is between 0 and the number of type face names specified in FontTypefaceList.
- Specified by:
validateDatain interfacePointCardRWInterface- Parameters:
escFontTypeface- EscFontTypeface object containing the sequence attributes.- Throws:
jpos.JposException- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:PointCardRWInterfaceValidate alignment sequence. For details, see UPOS specification of ESC|xA. Default behavior is that the service supports centered and right aligned text. The following plausibility checks will be made before this method will be called:- CapPrint is true.
- Specified by:
validateDatain interfacePointCardRWInterface- Parameters:
escAlignment- EscAlignment object that contains the sequence attributes.- Throws:
jpos.JposException- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:PointCardRWInterfaceValidate normalize escape sequence. For details, see UPOS specification of ESC|N. Should always be valid. Can be overwritten by service implementations. The following plausibility checks will be made before this method will be called:- CapPrint is true.
- Specified by:
validateDatain interfacePointCardRWInterface- Parameters:
escNormalize- EscNormalize object containing the sequence attributes.- Throws:
jpos.JposException- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:PointCardRWInterfaceValidate attribute setting sequences. For details, see UPOS specification for ESC|bC, ESC|iC and ESC|rvC. The default behavior is that reverse video is not supported. If a printer supports these attributes, this method must be overwritten.
The following plausibility checks will be made before this method will be called:- CapPrint is true,
- If EscSimple attribute Bold is true, CapBold is true,
- If EscSimple attribute Italic is true, CapItalic is true.
- Specified by:
validateDatain interfacePointCardRWInterface- Parameters:
escSimple- Object holding data of simple esc sequence- Throws:
jpos.JposException- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:PointCardRWInterfaceValidate combined underline printing sequence. For details, see UPOS specification for ESC|[#]uC. Default behavior is support for thickness of 1 dot for underline only. If a service does not support underline or supports another thickness, this method must be overwritten. The following plausibility checks will be made before this method will be called:- CapPrint is true.
- Specified by:
validateDatain interfacePointCardRWInterface- Parameters:
escUnderline- EscUnderline object containing the sequence attributes.- Throws:
jpos.JposException- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:PointCardRWInterfaceValidate print scale sequence. For details, see UPOS specification for ESC|xC, ESC|#hC or ESC|#vC. Default behavior is only support for scale = 1 and 2 if the corresponding capabilities for width and height of the specified station are true. If a service supports more scales, this method must be overwritten. The following plausibility checks will be made before this method will be called:- CapPrint is true.
- If EscScale attribute ScaleValue is above 1, CapDhigh, CapDwide or CapDwideDhigh is true if the corresponding EscScale attribute(s) ScaleHorizontal and / or ScaleVertical is / are true.
- Specified by:
validateDatain interfacePointCardRWInterface- Parameters:
escScale- EscScale object that holds the sequence specific attributes.- Throws:
jpos.JposException- For details, see UPOS method ValidateData.
-