JavaPOS1.11 Compliance List

1 General properties, methods and events

properties
Name Version Type Access MayUseAfter Compliance
AutoDisable 1.2 boolean R/W Not Supported Unsupported
CapPowerReporting 1.3 int R open OK
CheckHealthText 1 String R open OK
claimed 1 boolean R open OK
DataCount 1.2 int R Not Supported Unsupported
DataEventEnabled 1 boolean R/W Not Supported Unsupported
DeviceEnabled 1 boolean R/W open&claim OK
FreezeEvents 1 boolean R/W open OK
OutputID 1 int R open OK
PowerNotify 1.3 int R/W open OK
PowerState 1.3 int R open OK
State 1 int R   OK
DeviceControlDescription 1 String R   OK
DeviceControlVersion 1 int R   OK
DeviceServiceDescription 1 String R open OK
DeviceServiceVersion 1 int R open OK
PhysicalDeviceDescription 1 String R open OK
PhysicalDeviceName 1 String R open OK
CapCompareFirmwareVersion 1.9 boolean R open OK
CapStatisticsReporting 1.8 boolean R open Unsupported
CapUpdateFirmware 1.9 boolean R open OK
CapUpdateStatistics 1.8 boolean R open Unsupported

 

Methods
Name Version MayUseAfter Compliance
open 1.4   OK
close 1.4 open OK
claim 1.4 open OK
release 1.4 open,claim OK
checkHealth 1.4 open,claim,& enable OK
clearInput 1.4 Not supported Unsupported
clearOutput 1.4 open,claim,& enable OK
directIO 1.4 open OK
compareFirmwareVersion 1.9 open,claim,& enable OK
updateStatistics 1.8 open,claim,& enable Unsupported
updateFirmware 1.9 open,claim,& enable OK
retrieveStatistics 1.8 open,claim,& enable Unsupported
resetStatistics 1.8 open,claim,& enable Unsupported
clearInputProperties 1.10 Not supported Unsupported

2 Special properties, methods and events of printer

2.1 Special properties

Name Version Type Access MayUseAfter Compliance
CoverOpen 1 boolean R open,claim& enable OK
ErrorLevel 1.1 int R open OK
ErrorStation 1 int R open OK
ErrorString 1.1 String R open Fixed Blank String 
FontTypefaceList 1.1 String R open Fixed Blank String
FlagWhenIdle 1 boolean R/W open OK
MapMode 1 int R/W open OK
MapCharacterSet 1.7 boolean R/W open OK
RotateSpecial 1.1 int R/W open OK
JrnLineChars 1 int R/W open,claim,& enable Fixed 0
JrnLineCharsList 1 String R open Fixed Blank String
JrnLineHeight 1 int R/W open,claim,& enable Fixed 0
JrnLineSpacing 1 int R/W open,claim,& enable Fixed 0
JrnLineWidth 1 int R open,claim,& enable Fixed 0
JrnLetterQuality 1 boolean R/W open,claim,& enable Fixed As False
JrnEmpty 1 boolean R open,claim,& enable Fixed As False
JrnNearEnd 1 boolean R open,claim,& enable Fixed As False
JrnCartridgeState 1.5 int R open,claim,& enable OK
JrnCurrentCartridge 1.5 int R/W open,claim,& enable Fixed 0
RecLineChars 1 String R open OK
RecLineCharsList 1 String R open OK
RecLineHeight 1 int R/W open,claim,& enable Unsupported
RecLineSpacing 1 int R/W open,claim,& enable OK
RecLineWidth 1 int R open,claim,& enable OK
RecLetterQuality 1 boolean R/W open,claim,& enable Unsupported
RecEmpty 1 boolean R open,claim,& enable OK
RecNearEnd 1 boolean R open,claim,& enable OK
RecSidewaysMaxLines 1 int R open,claim,& enable OK
RecSidewaysMaxChars 1 int R open,claim,& enable OK
RecLinesToPaperCut 1 int R open,claim,& enable OK
RecBitmapRotateList 1.7 String R open "0,R90,L90,180"
RecBarCodeRotationList 1.1 String R open "0,R90,L90,180"
RecCartridgeState 1.5 int R open,claim,& enable OK
RecCurrentCartridge 1.5 int R/W open,claim,& enable Fixed 0
CapCharacterSet 1.1 int R open OK
CapMapCharacterSet 1.7 boolean R open OK
CapConcurrentJrnRec 1 boolean R open Fixed As False
CapConcurrentJrnSlp 1 boolean R open Fixed As False
CapConcurrentRecSlp 1 boolean R open Fixed As False
CapConcurrentPageMode 1.9 boolean R open Fixed As False
CapCoverSensor 1 boolean R open OK
CapTransaction 1.1 boolean R open OK
CapJrnPresent 1 boolean R open Fixed As False
CapJrn2Color 1 boolean R open Fixed As False
CapJrnBold 1 boolean R open Fixed As False
CapJrnCartridgeSensor 1.5 int R open Fixed 0
CapJrnColor 1.5 int R open Fixed 0
CapJrnDhigh 1 boolean R open Fixed As False
CapJrnDwide 1 boolean R open Fixed As False
CapJrnDwideDhigh 1 boolean R open Fixed As False
CapJrnEmptySensor 1 boolean R open Fixed As False
CapJrnItalic 1 boolean R open Fixed As False
CapJrnNearEndSensor 1 boolean R open Fixed As False
CapJrnUnderline 1 boolean R open Fixed As False
CapRec2Color 1 boolean R open OK
CapRecBarCode 1 boolean R open OK
CapRecBitmap 1 boolean R open OK
CapRecBold 1 boolean R open OK
CapRecCartridgeSensor 1.5 int R open Fixed 0
CapRecColor 1.5 int R open Fixed 0
CapRecDhigh 1 boolean R open OK
CapRecDwide 1 boolean R open OK
CapRecDwideDhigh 1 boolean R open OK
CapRecEmptySensor 1 boolean R open OK
CapRecItalic 1 boolean R open Fixed As False
CapRecLeft90 1 boolean R open OK
CapRecMarkFeed 1.5 int R open Fixed 0
CapRecNearEndSensor 1 boolean R open OK
CapRecPapercut 1 boolean R open OK
CapRecRight90 1 boolean R open OK
CapRecRotate180 1 boolean R open OK
CapRecStamp 1 boolean R open Fixed As False
CapRecUnderline 1 boolean R open OK
CapRecPresent 1 boolean R open OK
CapSlpPresent 1 boolean R open Fixed As False
CapSlpFullslip 1 boolean R open Fixed As False
CapSlp2Color 1 boolean R open Fixed As False
CapSlpBarCode 1 boolean R open Fixed As False
CapSlpBitmap 1 boolean R open Fixed As False
CapSlpBold 1 boolean R open Fixed As False
CapSlpBothSidesPrint 1.5 boolean R open Fixed As False
CapSlpCartridgeSensor 1.5 int R open Fixed 0
CapSlpColor 1.5 int R open Fixed 0
CapSlpDhigh 1 boolean R open Fixed As False
CapSlpDwide 1 boolean R open Fixed As False
CapSlpDwideDhigh 1 boolean R open Fixed As False
CapSlpEmptySensor 1 boolean R open Fixed As False
CapSlpItalic 1 boolean R open Fixed As False
CapSlpLeft90 1 boolean R open Fixed As False
CapSlpNearEndSensor 1 boolean R open Fixed As False
CapSlpRight90 1 boolean R open Fixed As False
CapSlpRotate180 1 boolean R open Fixed As False
CapSlpUnderline 1 boolean R open Fixed As False
AsyncMode 1 boolean R/W open OK
CartridgeNotify 1.5 int R/W open Fixed 0
CharacterSet 1 int R/W open,claim, Enable CharacterSetList.
CharacterSetList                    1 String     R     open          OK
SlpLineChars 1 int R/W open,claim,& enable Unsupported
SlpLineCharsList 1 String R open Unsupported
SlpLineHeight 1 int R/W open,claim,& enable Unsupported
SlpLineSpacing 1 int R/W open,claim,& enable Unsupported
SlpLineWidth 1 int R open,claim,& enable Unsupported
SlpLetterQuality 1 boolean R/W open,claim,& enable Unsupported
SlpEmpty 1 boolean R open,claim,& enable Unsupported
SlpNearEnd 1 boolean R open,claim,& enable Unsupported
SlpSidewaysMaxLines 1 int R open,claim,& enable Unsupported
SlpSidewaysMaxChars 1 int R open,claim,& enable Unsupported
SlpMaxLines 1 int R open,claim,& enable Unsupported
SlpLinesNearEndToEnd 1 int R open,claim,& enable Unsupported
SlpBarCodeRotationList 1.1 String R open Unsupported
SlpPrintSide 1.5 int R open,claim,& enable Unsupported
SlpCartridgeState 1.5 int R open,claim,& enable Unsupported
SlpCurrentCartridge 1.5 int R/W open,claim,& enable Unsupported
CapRecPageMode 1.9 boolean R open OK
PageModeArea 1.9 String R open OK
PageModeDescriptor 1.9 int R open OK
PageModePrintArea 1.9 String R/W open OK
PageModeVerticalPosition 1.9 int R/W open OK
PageModeStation 1.9 int R/W open OK
PageModePrintDirection 1.9 int R/W open OK
PageModeHorizontalPosition 1.9 int R/W open OK
CapSlpPageMode 1.9 boolean R open Fixed As False

2.2  Special methods

Specific Methods      
Name Version MayUseAfter Compliance
printNormal 1 open,claim,& enable OK
printTwoNormal 1 open,claim,& enable Unsupported
printImmediate 1 open,claim,& enable OK
beginInsertion 1 open,claim,& enable Unsupported
endInsertion 1 open,claim,& enable Unsupported
beginRemoval 1 open,claim,& enable Unsupported
endRemoval 1 open,claim,& enable Unsupported
cutPaper 1 open,claim,& enable OK
rotatePrint 1 open,claim,& enable OK
printBarCode 1 open,claim,& enable OK
printBitmap 1 open,claim,& enable OK
transactionPrint 1.1 open,claim,& enable OK
validateData 1.1 open,claim,& enable Unsupported
setBitmap 1 open,claim,& enable OK
setLogo 1 open,claim,& enable OK
markFeed 1.5 open,claim,& enable Unsupported
clearPrintArea 1.9 open,claim,& enable OK
pageModePrint 1.9 open,claim,& enable OK
printMemoryBitmap 1.10 open,claim,& enable Unsupported

3 Special properties, methods and events of cashdrawer

Specific 
Name Version MayUseAfter Compliance
Properties
CapStatus 1 open Ok
CapStatusMultiDrawerDetect 1.5 open Unsupported
DrawerOpened 1 open & enable Ok
Methods
openDrawer 1 open-Enabled OK
waitForDrawerClose 1 open-Enabled OK
Events
DirectIOEvent 1   Unsupported
StatusUpdateEvent 1   OK

4 Printer Error

ResultCodeExtended

Meanings

Remedy

JPOS_SUCCESS

 Operation successful.

OK

JPOS_E_CLOSED

 Not opened.

Open

JPOS_E_CLAIMED

Another instance is claimed on the same device.

Release the device that is making a claim in another process.

JPOS_E_NOTCLAIMED

Not claimed.

Claim

JPOS_E_NOSERVICE

No service.

Check the device name of the parameter of the Open method.
 Install the software again.

JPOS_E_DISABLED

DeviceEnabled is FALSE.

Set DeviceEnabled to TRUE.

JPOS_E_ILLEGAL

An illegal parameter,function is specified.

Execute the method using normal parameter or set the properties.
Check the status of the printer, and place it in the status in which commands can be executed.

JPOS_E_NOHARDWARE

Power is OFF or unconnected.

Turn ON the power.
Check the connections.

JPOS_E_OFFLINE

The printer is offline.

Make online.

JPOS_E_NOEXIST

File does not exist.
Registry information does not exist.

Check the filename and the name of registry key.
Install and register the software again.

JPOS_E_FAILURE

Hardware failure.

In the case of a recoverable error, eliminate the reason for the error, and then use the ESC/POS command to recover the error, or execute ClearOutput.
If this error occurs frequently, please contact the hardware manufacturer.

JPOS_E_BUSY

The current Service Object state does not allow this request. For example, if asynchronous output is in  progress, certain methods are not allowed.

Wait for the asynchronous output to finish, and then execute the processing again.

JPOS_EPTR_COVER_OPEN

Cover is opened.

Close the cover.

JPOS_EPTR_REC_EMPTY

Receipt station is out of paper.

Load receipt paper.