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 TypeFieldDescriptionboolean
UPOS property CapBold.boolean
UPOS property CapCardEntranceSensor.int
UPOS property CapCharacterSet.boolean
UPOS property CapCleanCard.boolean
UPOS property CapClearPrint.boolean
UPOS property CapDhigh.boolean
UPOS property CapDwide.boolean
UPOS property CapDwideDhigh.boolean
UPOS property CapItalic.boolean
UPOS property CapLeft90.boolean
UPOS property CapMapCharacterSet.boolean
UPOS property CapPrint.boolean
UPOS property CapPrintMode.boolean
UPOS property CapRight90.boolean
UPOS property CapRotate180.int
UPOS property CapTracksToRead.int
UPOS property CapTracksToWrite.int
UPOS property CardState.int
UPOS property CharacterSet.UPOS property CharacterSetList.UPOS property FontTypeFaceList.int
UPOS property LineChars.UPOS property LineCharsList.int
UPOS property LineHeight.int
UPOS property LineSpacing.int
UPOS property LineWidth.boolean
UPOS property MapCharacterSet.int
UPOS property MapMode.int
UPOS property MaxLines.int
UPOS property PrintHeight.Integer[]
UPOS properties ReadState1 and ReadState1.Integer[]
UPOS property RecvLength1 and RecvLength2.int
UPOS property SidewaysMaxChars.int
UPOS property SidewaysMaxLines.String[]
Internal property TrackData.int
UPOS property TracksToRead.int
UPOS 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 TypeMethodDescriptionvoid
beginInsertion(int i)
Final part of BeginInsertion method.void
beginRemoval(int timeout)
Final part of BeginRemoval method.void
characterSet(int code)
Final part of setting CharacterSet.void
Final part of DestroyWindow method.void
clearPrintWrite(int kind, int hposition, int vposition, int width, int height)
Final part of ClearPrintWrite method.void
Final part of EndInsertion method.void
Final part of EndRemoval method.int
getReadState(int trackNumber)
get the state of the specified track from property ReadState1 or ReadState2.int
getRecvLength(int trackNumber)
get the length of the specified track from property RecvLength1 or RecvLength2.int
getWriteState(int trackNumber)
get the state of the specified track from property WriteState1 or WriteState2.void
lineChars(int chars)
Final part of setting LineChars.void
lineHeight(int height)
Final part of setting LineHeight.void
lineSpacing(int spacing)
Final part of setting LineSpacing.void
mapCharacterSet(boolean flag)
Final part of setting MapCharacterSet.void
mapMode(int mode)
Final part of setting MapMode.printWrite(int kind, int hposition, int vposition, String data)
Validation part of PrintWrite method.void
printWrite(PrintWrite request)
Final part of PrintWrite method.void
rotatePrint(int rotation)
Final part of RotatePrint method.void
setReadState(int trackNumber, int value)
Set the state given for the specified track into property ReadState1 or ReadState2.void
setRecvLength(int trackNumber, int value)
Set the length given for the specified track into property RecvLength1 or RecvLength2.void
setWriteState(int trackNumber, int value)
Set the state given for the specified track into property WriteState1 or WriteState2.void
tracksToRead(int tracks)
Final part of setting TracksToRead.void
tracksToWrite(int tracks)
Final part of setting TracksToWrite.void
validateData(PointCardRWService.EscAlignment escAlignment)
Validate alignment sequence.void
validateData(PointCardRWService.EscEmbedded escEmbedded)
Validate embedded data sequence.void
validateData(PointCardRWService.EscFontTypeface escFontTypeface)
Validate font typeface selection sequence.void
validateData(PointCardRWService.EscNormalize escNormalize)
Validate normalize escape sequence.void
validateData(PointCardRWService.EscScale escScale)
Validate print scale sequence.void
validateData(PointCardRWService.EscSimple escSimple)
Validate attribute setting sequences.void
validateData(PointCardRWService.EscUnderline escUnderline)
Validate combined underline printing sequence.void
validateData(PointCardRWService.EscUnknown printData)
Validate unknown sequence.void
validateData(PointCardRWService.PrintData printData)
Validate printable character sequence.void
validateData(String data)
Final part of DestroyWindow method.void
write1Data(String trackdata)
Final part of setting Write1Data.void
write2Data(String trackdata)
Final part of setting Write2Data.void
write3Data(String trackdata)
Final part of setting Write3Data.void
write4Data(String trackdata)
Final part of setting Write4Data.void
write5Data(String trackdata)
Final part of setting Write5Data.void
write6Data(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, waitWaiter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:PointCardRWInterface
Final 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:
characterSet
in 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:PointCardRWInterface
Final 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:
lineChars
in 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:PointCardRWInterface
Final 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:
lineHeight
in 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:PointCardRWInterface
Final 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:
lineSpacing
in 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:PointCardRWInterface
Final 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:
mapCharacterSet
in 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:PointCardRWInterface
Final 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:
mapMode
in 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:PointCardRWInterface
Final 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:
tracksToRead
in 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:PointCardRWInterface
Final 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:
tracksToWrite
in interfacePointCardRWInterface
- Parameters:
tracks
- New TracksToWrite value- Throws:
jpos.JposException
- If an error occurs
-
write1Data
Description copied from interface:PointCardRWInterface
Final 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:
write1Data
in interfacePointCardRWInterface
- Parameters:
trackdata
- New Write1Data value- Throws:
jpos.JposException
- If an error occurs
-
write2Data
Description copied from interface:PointCardRWInterface
Final 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:
write2Data
in interfacePointCardRWInterface
- Parameters:
trackdata
- New Write2Data value- Throws:
jpos.JposException
- If an error occurs
-
write3Data
Description copied from interface:PointCardRWInterface
Final 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:
write3Data
in interfacePointCardRWInterface
- Parameters:
trackdata
- New Write3Data value- Throws:
jpos.JposException
- If an error occurs
-
write4Data
Description copied from interface:PointCardRWInterface
Final 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:
write4Data
in interfacePointCardRWInterface
- Parameters:
trackdata
- New Write4Data value- Throws:
jpos.JposException
- If an error occurs
-
write5Data
Description copied from interface:PointCardRWInterface
Final 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:
write5Data
in interfacePointCardRWInterface
- Parameters:
trackdata
- New Write5Data value- Throws:
jpos.JposException
- If an error occurs
-
write6Data
Description copied from interface:PointCardRWInterface
Final 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:
write6Data
in 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:PointCardRWInterface
Final 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:
beginInsertion
in 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:PointCardRWInterface
Final 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:
beginRemoval
in 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:PointCardRWInterface
Final 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:
cleanCard
in 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:PointCardRWInterface
Final 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:
clearPrintWrite
in 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:PointCardRWInterface
Final 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:
endInsertion
in interfacePointCardRWInterface
- Throws:
jpos.JposException
- If an error occurs.
-
endRemoval
public void endRemoval() throws jpos.JposExceptionDescription copied from interface:PointCardRWInterface
Final 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:
endRemoval
in interfacePointCardRWInterface
- Throws:
jpos.JposException
- If an error occurs.
-
rotatePrint
public void rotatePrint(int rotation) throws jpos.JposExceptionDescription copied from interface:PointCardRWInterface
Final 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:
rotatePrint
in interfacePointCardRWInterface
- Parameters:
rotation
- Requested rotation.- Throws:
jpos.JposException
- If an error occurs.
-
validateData
Description copied from interface:PointCardRWInterface
Final 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:
validateData
in 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:PointCardRWInterface
Validation 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:
printWrite
in 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:PointCardRWInterface
Final 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:
printWrite
in 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:PointCardRWInterface
Validate 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:
validateData
in interfacePointCardRWInterface
- Parameters:
printData
- EscUnknown object containing the sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:PointCardRWInterface
Validate 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:
validateData
in interfacePointCardRWInterface
- Parameters:
printData
- Data to be printed.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:PointCardRWInterface
Validate 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:
validateData
in 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:PointCardRWInterface
Validate 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:
validateData
in interfacePointCardRWInterface
- Parameters:
escFontTypeface
- EscFontTypeface object containing the sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:PointCardRWInterface
Validate 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:
validateData
in interfacePointCardRWInterface
- Parameters:
escAlignment
- EscAlignment object that contains the sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:PointCardRWInterface
Validate 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:
validateData
in interfacePointCardRWInterface
- Parameters:
escNormalize
- EscNormalize object containing the sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:PointCardRWInterface
Validate 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:
validateData
in interfacePointCardRWInterface
- Parameters:
escSimple
- Object holding data of simple esc sequence- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:PointCardRWInterface
Validate 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:
validateData
in interfacePointCardRWInterface
- Parameters:
escUnderline
- EscUnderline object containing the sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:PointCardRWInterface
Validate 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:
validateData
in interfacePointCardRWInterface
- Parameters:
escScale
- EscScale object that holds the sequence specific attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-