Class POSPrinterService

java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposBase
de.gmxhome.conrad.jpos.jpos_base.posprinter.POSPrinterService
All Implemented Interfaces:
jpos.loader.JposServiceInstance, jpos.services.BaseService, jpos.services.POSPrinterService110, jpos.services.POSPrinterService111, jpos.services.POSPrinterService112, jpos.services.POSPrinterService113, jpos.services.POSPrinterService114, jpos.services.POSPrinterService115, jpos.services.POSPrinterService116, jpos.services.POSPrinterService12, jpos.services.POSPrinterService13, jpos.services.POSPrinterService14, jpos.services.POSPrinterService15, jpos.services.POSPrinterService16, jpos.services.POSPrinterService17, jpos.services.POSPrinterService18, jpos.services.POSPrinterService19

public class POSPrinterService extends JposBase implements jpos.services.POSPrinterService116
POSPrinter service implementation. For more details about getter, setter and method implementations, see JposBase.
  • Field Details

    • POSPrinterInterface

      public POSPrinterInterface POSPrinterInterface
      Instance of a class implementing the POSPrinterInterface for pos printer specific setter and method calls bound to the property set. Almost always the same object as Data.
  • Constructor Details

    • POSPrinterService

      public POSPrinterService(POSPrinterProperties props, JposDevice device)
      Constructor. Stores given property set and device implementation object.
      Parameters:
      props - Property set.
      device - Device implementation object.
  • Method Details

    • clearOutput

      public void clearOutput() throws jpos.JposException
      Description copied from class: JposBase
      Common method clearOutput, se UPOS specification
      Specified by:
      clearOutput in interface jpos.services.POSPrinterService12
      Overrides:
      clearOutput in class JposBase
      Throws:
      jpos.JposException - See UPOS specification, method clearOutput
    • getCapCharacterSet

      public int getCapCharacterSet() throws jpos.JposException
      Specified by:
      getCapCharacterSet in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapConcurrentJrnRec

      public boolean getCapConcurrentJrnRec() throws jpos.JposException
      Specified by:
      getCapConcurrentJrnRec in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapConcurrentJrnSlp

      public boolean getCapConcurrentJrnSlp() throws jpos.JposException
      Specified by:
      getCapConcurrentJrnSlp in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapConcurrentPageMode

      public boolean getCapConcurrentPageMode() throws jpos.JposException
      Specified by:
      getCapConcurrentPageMode in interface jpos.services.POSPrinterService19
      Throws:
      jpos.JposException
    • getCapConcurrentRecSlp

      public boolean getCapConcurrentRecSlp() throws jpos.JposException
      Specified by:
      getCapConcurrentRecSlp in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapCoverSensor

      public boolean getCapCoverSensor() throws jpos.JposException
      Specified by:
      getCapCoverSensor in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapJrn2Color

      public boolean getCapJrn2Color() throws jpos.JposException
      Specified by:
      getCapJrn2Color in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapJrnBold

      public boolean getCapJrnBold() throws jpos.JposException
      Specified by:
      getCapJrnBold in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapJrnCartridgeSensor

      public int getCapJrnCartridgeSensor() throws jpos.JposException
      Specified by:
      getCapJrnCartridgeSensor in interface jpos.services.POSPrinterService15
      Throws:
      jpos.JposException
    • getCapJrnColor

      public int getCapJrnColor() throws jpos.JposException
      Specified by:
      getCapJrnColor in interface jpos.services.POSPrinterService15
      Throws:
      jpos.JposException
    • getCapJrnDhigh

      public boolean getCapJrnDhigh() throws jpos.JposException
      Specified by:
      getCapJrnDhigh in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapJrnDwide

      public boolean getCapJrnDwide() throws jpos.JposException
      Specified by:
      getCapJrnDwide in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapJrnDwideDhigh

      public boolean getCapJrnDwideDhigh() throws jpos.JposException
      Specified by:
      getCapJrnDwideDhigh in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapJrnEmptySensor

      public boolean getCapJrnEmptySensor() throws jpos.JposException
      Specified by:
      getCapJrnEmptySensor in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapJrnItalic

      public boolean getCapJrnItalic() throws jpos.JposException
      Specified by:
      getCapJrnItalic in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapJrnNearEndSensor

      public boolean getCapJrnNearEndSensor() throws jpos.JposException
      Specified by:
      getCapJrnNearEndSensor in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapJrnPresent

      public boolean getCapJrnPresent() throws jpos.JposException
      Specified by:
      getCapJrnPresent in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapJrnUnderline

      public boolean getCapJrnUnderline() throws jpos.JposException
      Specified by:
      getCapJrnUnderline in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapMapCharacterSet

      public boolean getCapMapCharacterSet() throws jpos.JposException
      Specified by:
      getCapMapCharacterSet in interface jpos.services.POSPrinterService17
      Throws:
      jpos.JposException
    • getCapRec2Color

      public boolean getCapRec2Color() throws jpos.JposException
      Specified by:
      getCapRec2Color in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapRecBarCode

      public boolean getCapRecBarCode() throws jpos.JposException
      Specified by:
      getCapRecBarCode in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapRecBitmap

      public boolean getCapRecBitmap() throws jpos.JposException
      Specified by:
      getCapRecBitmap in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapRecBold

      public boolean getCapRecBold() throws jpos.JposException
      Specified by:
      getCapRecBold in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapRecCartridgeSensor

      public int getCapRecCartridgeSensor() throws jpos.JposException
      Specified by:
      getCapRecCartridgeSensor in interface jpos.services.POSPrinterService15
      Throws:
      jpos.JposException
    • getCapRecColor

      public int getCapRecColor() throws jpos.JposException
      Specified by:
      getCapRecColor in interface jpos.services.POSPrinterService15
      Throws:
      jpos.JposException
    • getCapRecDhigh

      public boolean getCapRecDhigh() throws jpos.JposException
      Specified by:
      getCapRecDhigh in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapRecDwide

      public boolean getCapRecDwide() throws jpos.JposException
      Specified by:
      getCapRecDwide in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapRecDwideDhigh

      public boolean getCapRecDwideDhigh() throws jpos.JposException
      Specified by:
      getCapRecDwideDhigh in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapRecEmptySensor

      public boolean getCapRecEmptySensor() throws jpos.JposException
      Specified by:
      getCapRecEmptySensor in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapRecItalic

      public boolean getCapRecItalic() throws jpos.JposException
      Specified by:
      getCapRecItalic in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapRecLeft90

      public boolean getCapRecLeft90() throws jpos.JposException
      Specified by:
      getCapRecLeft90 in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapRecMarkFeed

      public int getCapRecMarkFeed() throws jpos.JposException
      Specified by:
      getCapRecMarkFeed in interface jpos.services.POSPrinterService15
      Throws:
      jpos.JposException
    • getCapRecNearEndSensor

      public boolean getCapRecNearEndSensor() throws jpos.JposException
      Specified by:
      getCapRecNearEndSensor in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapRecPageMode

      public boolean getCapRecPageMode() throws jpos.JposException
      Specified by:
      getCapRecPageMode in interface jpos.services.POSPrinterService19
      Throws:
      jpos.JposException
    • getCapRecPapercut

      public boolean getCapRecPapercut() throws jpos.JposException
      Specified by:
      getCapRecPapercut in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapRecPresent

      public boolean getCapRecPresent() throws jpos.JposException
      Specified by:
      getCapRecPresent in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapRecRight90

      public boolean getCapRecRight90() throws jpos.JposException
      Specified by:
      getCapRecRight90 in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapRecRotate180

      public boolean getCapRecRotate180() throws jpos.JposException
      Specified by:
      getCapRecRotate180 in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapRecRuledLine

      public int getCapRecRuledLine() throws jpos.JposException
      Specified by:
      getCapRecRuledLine in interface jpos.services.POSPrinterService113
      Throws:
      jpos.JposException
    • getCapRecStamp

      public boolean getCapRecStamp() throws jpos.JposException
      Specified by:
      getCapRecStamp in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapRecUnderline

      public boolean getCapRecUnderline() throws jpos.JposException
      Specified by:
      getCapRecUnderline in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapSlp2Color

      public boolean getCapSlp2Color() throws jpos.JposException
      Specified by:
      getCapSlp2Color in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapSlpBarCode

      public boolean getCapSlpBarCode() throws jpos.JposException
      Specified by:
      getCapSlpBarCode in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapSlpBitmap

      public boolean getCapSlpBitmap() throws jpos.JposException
      Specified by:
      getCapSlpBitmap in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapSlpBold

      public boolean getCapSlpBold() throws jpos.JposException
      Specified by:
      getCapSlpBold in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapSlpBothSidesPrint

      public boolean getCapSlpBothSidesPrint() throws jpos.JposException
      Specified by:
      getCapSlpBothSidesPrint in interface jpos.services.POSPrinterService15
      Throws:
      jpos.JposException
    • getCapSlpCartridgeSensor

      public int getCapSlpCartridgeSensor() throws jpos.JposException
      Specified by:
      getCapSlpCartridgeSensor in interface jpos.services.POSPrinterService15
      Throws:
      jpos.JposException
    • getCapSlpColor

      public int getCapSlpColor() throws jpos.JposException
      Specified by:
      getCapSlpColor in interface jpos.services.POSPrinterService15
      Throws:
      jpos.JposException
    • getCapSlpDhigh

      public boolean getCapSlpDhigh() throws jpos.JposException
      Specified by:
      getCapSlpDhigh in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapSlpDwide

      public boolean getCapSlpDwide() throws jpos.JposException
      Specified by:
      getCapSlpDwide in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapSlpDwideDhigh

      public boolean getCapSlpDwideDhigh() throws jpos.JposException
      Specified by:
      getCapSlpDwideDhigh in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapSlpEmptySensor

      public boolean getCapSlpEmptySensor() throws jpos.JposException
      Specified by:
      getCapSlpEmptySensor in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapSlpFullslip

      public boolean getCapSlpFullslip() throws jpos.JposException
      Specified by:
      getCapSlpFullslip in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapSlpItalic

      public boolean getCapSlpItalic() throws jpos.JposException
      Specified by:
      getCapSlpItalic in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapSlpLeft90

      public boolean getCapSlpLeft90() throws jpos.JposException
      Specified by:
      getCapSlpLeft90 in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapSlpNearEndSensor

      public boolean getCapSlpNearEndSensor() throws jpos.JposException
      Specified by:
      getCapSlpNearEndSensor in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapSlpPageMode

      public boolean getCapSlpPageMode() throws jpos.JposException
      Specified by:
      getCapSlpPageMode in interface jpos.services.POSPrinterService19
      Throws:
      jpos.JposException
    • getCapSlpPresent

      public boolean getCapSlpPresent() throws jpos.JposException
      Specified by:
      getCapSlpPresent in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapSlpRight90

      public boolean getCapSlpRight90() throws jpos.JposException
      Specified by:
      getCapSlpRight90 in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapSlpRotate180

      public boolean getCapSlpRotate180() throws jpos.JposException
      Specified by:
      getCapSlpRotate180 in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapSlpRuledLine

      public int getCapSlpRuledLine() throws jpos.JposException
      Specified by:
      getCapSlpRuledLine in interface jpos.services.POSPrinterService113
      Throws:
      jpos.JposException
    • getCapSlpUnderline

      public boolean getCapSlpUnderline() throws jpos.JposException
      Specified by:
      getCapSlpUnderline in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCapTransaction

      public boolean getCapTransaction() throws jpos.JposException
      Specified by:
      getCapTransaction in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCartridgeNotify

      public int getCartridgeNotify() throws jpos.JposException
      Specified by:
      getCartridgeNotify in interface jpos.services.POSPrinterService15
      Throws:
      jpos.JposException
    • setCartridgeNotify

      public void setCartridgeNotify(int i) throws jpos.JposException
      Specified by:
      setCartridgeNotify in interface jpos.services.POSPrinterService15
      Throws:
      jpos.JposException
    • getCharacterSet

      public int getCharacterSet() throws jpos.JposException
      Specified by:
      getCharacterSet in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • setCharacterSet

      public void setCharacterSet(int i) throws jpos.JposException
      Specified by:
      setCharacterSet in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCharacterSetList

      public String getCharacterSetList() throws jpos.JposException
      Specified by:
      getCharacterSetList in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getCoverOpen

      public boolean getCoverOpen() throws jpos.JposException
      Specified by:
      getCoverOpen in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getErrorLevel

      public int getErrorLevel() throws jpos.JposException
      Specified by:
      getErrorLevel in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getErrorStation

      public int getErrorStation() throws jpos.JposException
      Specified by:
      getErrorStation in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getErrorString

      public String getErrorString() throws jpos.JposException
      Specified by:
      getErrorString in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getFlagWhenIdle

      public boolean getFlagWhenIdle() throws jpos.JposException
      Specified by:
      getFlagWhenIdle in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • setFlagWhenIdle

      public void setFlagWhenIdle(boolean b) throws jpos.JposException
      Specified by:
      setFlagWhenIdle in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getFontTypefaceList

      public String getFontTypefaceList() throws jpos.JposException
      Specified by:
      getFontTypefaceList in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getJrnCartridgeState

      public int getJrnCartridgeState() throws jpos.JposException
      Specified by:
      getJrnCartridgeState in interface jpos.services.POSPrinterService15
      Throws:
      jpos.JposException
    • getJrnCurrentCartridge

      public int getJrnCurrentCartridge() throws jpos.JposException
      Specified by:
      getJrnCurrentCartridge in interface jpos.services.POSPrinterService15
      Throws:
      jpos.JposException
    • setJrnCurrentCartridge

      public void setJrnCurrentCartridge(int i) throws jpos.JposException
      Specified by:
      setJrnCurrentCartridge in interface jpos.services.POSPrinterService15
      Throws:
      jpos.JposException
    • getJrnEmpty

      public boolean getJrnEmpty() throws jpos.JposException
      Specified by:
      getJrnEmpty in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getJrnLetterQuality

      public boolean getJrnLetterQuality() throws jpos.JposException
      Specified by:
      getJrnLetterQuality in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • setJrnLetterQuality

      public void setJrnLetterQuality(boolean b) throws jpos.JposException
      Specified by:
      setJrnLetterQuality in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getJrnLineChars

      public int getJrnLineChars() throws jpos.JposException
      Specified by:
      getJrnLineChars in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • setJrnLineChars

      public void setJrnLineChars(int i) throws jpos.JposException
      Specified by:
      setJrnLineChars in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getJrnLineCharsList

      public String getJrnLineCharsList() throws jpos.JposException
      Specified by:
      getJrnLineCharsList in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getJrnLineHeight

      public int getJrnLineHeight() throws jpos.JposException
      Specified by:
      getJrnLineHeight in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • setJrnLineHeight

      public void setJrnLineHeight(int i) throws jpos.JposException
      Specified by:
      setJrnLineHeight in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getJrnLineSpacing

      public int getJrnLineSpacing() throws jpos.JposException
      Specified by:
      getJrnLineSpacing in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • setJrnLineSpacing

      public void setJrnLineSpacing(int i) throws jpos.JposException
      Specified by:
      setJrnLineSpacing in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getJrnLineWidth

      public int getJrnLineWidth() throws jpos.JposException
      Specified by:
      getJrnLineWidth in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getJrnNearEnd

      public boolean getJrnNearEnd() throws jpos.JposException
      Specified by:
      getJrnNearEnd in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getMapCharacterSet

      public boolean getMapCharacterSet() throws jpos.JposException
      Specified by:
      getMapCharacterSet in interface jpos.services.POSPrinterService17
      Throws:
      jpos.JposException
    • setMapCharacterSet

      public void setMapCharacterSet(boolean b) throws jpos.JposException
      Specified by:
      setMapCharacterSet in interface jpos.services.POSPrinterService17
      Throws:
      jpos.JposException
    • getMapMode

      public int getMapMode() throws jpos.JposException
      Specified by:
      getMapMode in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • setMapMode

      public void setMapMode(int i) throws jpos.JposException
      Specified by:
      setMapMode in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getPageModeArea

      public String getPageModeArea() throws jpos.JposException
      Specified by:
      getPageModeArea in interface jpos.services.POSPrinterService19
      Throws:
      jpos.JposException
    • getPageModeDescriptor

      public int getPageModeDescriptor() throws jpos.JposException
      Specified by:
      getPageModeDescriptor in interface jpos.services.POSPrinterService19
      Throws:
      jpos.JposException
    • getPageModeHorizontalPosition

      public int getPageModeHorizontalPosition() throws jpos.JposException
      Specified by:
      getPageModeHorizontalPosition in interface jpos.services.POSPrinterService19
      Throws:
      jpos.JposException
    • setPageModeHorizontalPosition

      public void setPageModeHorizontalPosition(int i) throws jpos.JposException
      Specified by:
      setPageModeHorizontalPosition in interface jpos.services.POSPrinterService19
      Throws:
      jpos.JposException
    • getPageModePrintArea

      public String getPageModePrintArea() throws jpos.JposException
      Specified by:
      getPageModePrintArea in interface jpos.services.POSPrinterService19
      Throws:
      jpos.JposException
    • setPageModePrintArea

      public void setPageModePrintArea(String s) throws jpos.JposException
      Specified by:
      setPageModePrintArea in interface jpos.services.POSPrinterService19
      Throws:
      jpos.JposException
    • getPageModePrintDirection

      public int getPageModePrintDirection() throws jpos.JposException
      Specified by:
      getPageModePrintDirection in interface jpos.services.POSPrinterService19
      Throws:
      jpos.JposException
    • setPageModePrintDirection

      public void setPageModePrintDirection(int i) throws jpos.JposException
      Specified by:
      setPageModePrintDirection in interface jpos.services.POSPrinterService19
      Throws:
      jpos.JposException
    • getPageModeStation

      public int getPageModeStation() throws jpos.JposException
      Specified by:
      getPageModeStation in interface jpos.services.POSPrinterService19
      Throws:
      jpos.JposException
    • setPageModeStation

      public void setPageModeStation(int i) throws jpos.JposException
      Specified by:
      setPageModeStation in interface jpos.services.POSPrinterService19
      Throws:
      jpos.JposException
    • getPageModeVerticalPosition

      public int getPageModeVerticalPosition() throws jpos.JposException
      Specified by:
      getPageModeVerticalPosition in interface jpos.services.POSPrinterService19
      Throws:
      jpos.JposException
    • setPageModeVerticalPosition

      public void setPageModeVerticalPosition(int i) throws jpos.JposException
      Specified by:
      setPageModeVerticalPosition in interface jpos.services.POSPrinterService19
      Throws:
      jpos.JposException
    • getRecBarCodeRotationList

      public String getRecBarCodeRotationList() throws jpos.JposException
      Specified by:
      getRecBarCodeRotationList in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getRecBitmapRotationList

      public String getRecBitmapRotationList() throws jpos.JposException
      Specified by:
      getRecBitmapRotationList in interface jpos.services.POSPrinterService17
      Throws:
      jpos.JposException
    • getRecCartridgeState

      public int getRecCartridgeState() throws jpos.JposException
      Specified by:
      getRecCartridgeState in interface jpos.services.POSPrinterService15
      Throws:
      jpos.JposException
    • getRecCurrentCartridge

      public int getRecCurrentCartridge() throws jpos.JposException
      Specified by:
      getRecCurrentCartridge in interface jpos.services.POSPrinterService15
      Throws:
      jpos.JposException
    • setRecCurrentCartridge

      public void setRecCurrentCartridge(int i) throws jpos.JposException
      Specified by:
      setRecCurrentCartridge in interface jpos.services.POSPrinterService15
      Throws:
      jpos.JposException
    • getRecEmpty

      public boolean getRecEmpty() throws jpos.JposException
      Specified by:
      getRecEmpty in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getRecLetterQuality

      public boolean getRecLetterQuality() throws jpos.JposException
      Specified by:
      getRecLetterQuality in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • setRecLetterQuality

      public void setRecLetterQuality(boolean b) throws jpos.JposException
      Specified by:
      setRecLetterQuality in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getRecLineChars

      public int getRecLineChars() throws jpos.JposException
      Specified by:
      getRecLineChars in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • setRecLineChars

      public void setRecLineChars(int i) throws jpos.JposException
      Specified by:
      setRecLineChars in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getRecLineCharsList

      public String getRecLineCharsList() throws jpos.JposException
      Specified by:
      getRecLineCharsList in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getRecLineHeight

      public int getRecLineHeight() throws jpos.JposException
      Specified by:
      getRecLineHeight in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • setRecLineHeight

      public void setRecLineHeight(int i) throws jpos.JposException
      Specified by:
      setRecLineHeight in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getRecLineSpacing

      public int getRecLineSpacing() throws jpos.JposException
      Specified by:
      getRecLineSpacing in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • setRecLineSpacing

      public void setRecLineSpacing(int i) throws jpos.JposException
      Specified by:
      setRecLineSpacing in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getRecLinesToPaperCut

      public int getRecLinesToPaperCut() throws jpos.JposException
      Specified by:
      getRecLinesToPaperCut in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getRecLineWidth

      public int getRecLineWidth() throws jpos.JposException
      Specified by:
      getRecLineWidth in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getRecNearEnd

      public boolean getRecNearEnd() throws jpos.JposException
      Specified by:
      getRecNearEnd in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getRecSidewaysMaxChars

      public int getRecSidewaysMaxChars() throws jpos.JposException
      Specified by:
      getRecSidewaysMaxChars in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getRecSidewaysMaxLines

      public int getRecSidewaysMaxLines() throws jpos.JposException
      Specified by:
      getRecSidewaysMaxLines in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getRotateSpecial

      public int getRotateSpecial() throws jpos.JposException
      Specified by:
      getRotateSpecial in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • setRotateSpecial

      public void setRotateSpecial(int i) throws jpos.JposException
      Specified by:
      setRotateSpecial in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getSlpBarCodeRotationList

      public String getSlpBarCodeRotationList() throws jpos.JposException
      Specified by:
      getSlpBarCodeRotationList in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getSlpBitmapRotationList

      public String getSlpBitmapRotationList() throws jpos.JposException
      Specified by:
      getSlpBitmapRotationList in interface jpos.services.POSPrinterService17
      Throws:
      jpos.JposException
    • getSlpCartridgeState

      public int getSlpCartridgeState() throws jpos.JposException
      Specified by:
      getSlpCartridgeState in interface jpos.services.POSPrinterService15
      Throws:
      jpos.JposException
    • getSlpCurrentCartridge

      public int getSlpCurrentCartridge() throws jpos.JposException
      Specified by:
      getSlpCurrentCartridge in interface jpos.services.POSPrinterService15
      Throws:
      jpos.JposException
    • setSlpCurrentCartridge

      public void setSlpCurrentCartridge(int i) throws jpos.JposException
      Specified by:
      setSlpCurrentCartridge in interface jpos.services.POSPrinterService15
      Throws:
      jpos.JposException
    • getSlpEmpty

      public boolean getSlpEmpty() throws jpos.JposException
      Specified by:
      getSlpEmpty in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getSlpLetterQuality

      public boolean getSlpLetterQuality() throws jpos.JposException
      Specified by:
      getSlpLetterQuality in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • setSlpLetterQuality

      public void setSlpLetterQuality(boolean b) throws jpos.JposException
      Specified by:
      setSlpLetterQuality in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getSlpLineChars

      public int getSlpLineChars() throws jpos.JposException
      Specified by:
      getSlpLineChars in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • setSlpLineChars

      public void setSlpLineChars(int i) throws jpos.JposException
      Specified by:
      setSlpLineChars in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getSlpLineCharsList

      public String getSlpLineCharsList() throws jpos.JposException
      Specified by:
      getSlpLineCharsList in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getSlpLineHeight

      public int getSlpLineHeight() throws jpos.JposException
      Specified by:
      getSlpLineHeight in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • setSlpLineHeight

      public void setSlpLineHeight(int i) throws jpos.JposException
      Specified by:
      setSlpLineHeight in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getSlpLinesNearEndToEnd

      public int getSlpLinesNearEndToEnd() throws jpos.JposException
      Specified by:
      getSlpLinesNearEndToEnd in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getSlpLineSpacing

      public int getSlpLineSpacing() throws jpos.JposException
      Specified by:
      getSlpLineSpacing in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • setSlpLineSpacing

      public void setSlpLineSpacing(int i) throws jpos.JposException
      Specified by:
      setSlpLineSpacing in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getSlpLineWidth

      public int getSlpLineWidth() throws jpos.JposException
      Specified by:
      getSlpLineWidth in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getSlpMaxLines

      public int getSlpMaxLines() throws jpos.JposException
      Specified by:
      getSlpMaxLines in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getSlpNearEnd

      public boolean getSlpNearEnd() throws jpos.JposException
      Specified by:
      getSlpNearEnd in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getSlpPrintSide

      public int getSlpPrintSide() throws jpos.JposException
      Specified by:
      getSlpPrintSide in interface jpos.services.POSPrinterService15
      Throws:
      jpos.JposException
    • getSlpSidewaysMaxChars

      public int getSlpSidewaysMaxChars() throws jpos.JposException
      Specified by:
      getSlpSidewaysMaxChars in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • getSlpSidewaysMaxLines

      public int getSlpSidewaysMaxLines() throws jpos.JposException
      Specified by:
      getSlpSidewaysMaxLines in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • beginInsertion

      public void beginInsertion(int timeout) throws jpos.JposException
      Specified by:
      beginInsertion in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • beginRemoval

      public void beginRemoval(int timeout) throws jpos.JposException
      Specified by:
      beginRemoval in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • changePrintSide

      public void changePrintSide(int side) throws jpos.JposException
      Specified by:
      changePrintSide in interface jpos.services.POSPrinterService15
      Throws:
      jpos.JposException
    • clearPrintArea

      public void clearPrintArea() throws jpos.JposException
      Specified by:
      clearPrintArea in interface jpos.services.POSPrinterService19
      Throws:
      jpos.JposException
    • endInsertion

      public void endInsertion() throws jpos.JposException
      Specified by:
      endInsertion in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • endRemoval

      public void endRemoval() throws jpos.JposException
      Specified by:
      endRemoval in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • printImmediate

      public void printImmediate(int station, String data) throws jpos.JposException
      Specified by:
      printImmediate in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • setBitmap

      public void setBitmap(int bitmapNumber, int station, String fileName, int width, int alignment) throws jpos.JposException
      Specified by:
      setBitmap in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • setLogo

      public void setLogo(int location, String data) throws jpos.JposException
      Specified by:
      setLogo in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • validateData

      public void validateData(int station, String text) throws jpos.JposException
      Specified by:
      validateData in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • cutPaper

      public void cutPaper(int percentage) throws jpos.JposException
      Specified by:
      cutPaper in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • drawRuledLine

      public void drawRuledLine(int station, String positionList, int lineDirection, int lineWidth, int lineStyle, int lineColor) throws jpos.JposException
      Specified by:
      drawRuledLine in interface jpos.services.POSPrinterService113
      Throws:
      jpos.JposException
    • markFeed

      public void markFeed(int type) throws jpos.JposException
      Specified by:
      markFeed in interface jpos.services.POSPrinterService15
      Throws:
      jpos.JposException
    • printBarCode

      public void printBarCode(int station, String data, int symbology, int height, int width, int alignment, int textPosition) throws jpos.JposException
      Specified by:
      printBarCode in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • printBitmap

      public void printBitmap(int station, String fileName, int width, int alignment) throws jpos.JposException
      Specified by:
      printBitmap in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • printMemoryBitmap

      public void printMemoryBitmap(int station, byte[] data, int type, int width, int alignment) throws jpos.JposException
      Specified by:
      printMemoryBitmap in interface jpos.services.POSPrinterService110
      Throws:
      jpos.JposException
    • printNormal

      public void printNormal(int station, String data) throws jpos.JposException
      Specified by:
      printNormal in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • printTwoNormal

      public void printTwoNormal(int stations, String data1, String data2) throws jpos.JposException
      Specified by:
      printTwoNormal in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • pageModePrint

      public void pageModePrint(int control) throws jpos.JposException
      Specified by:
      pageModePrint in interface jpos.services.POSPrinterService19
      Throws:
      jpos.JposException
    • rotatePrint

      public void rotatePrint(int station, int rotation) throws jpos.JposException
      Specified by:
      rotatePrint in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • transactionPrint

      public void transactionPrint(int station, int control) throws jpos.JposException
      Specified by:
      transactionPrint in interface jpos.services.POSPrinterService12
      Throws:
      jpos.JposException
    • max

      public static long max(long[] valarray)
      Helper function. Retrieves maximum value of a long array.
      Parameters:
      valarray - The array.
      Returns:
      Maximum value stored in valarray.
    • outputDataParts

      public List<POSPrinterService.PrintDataPart> outputDataParts(String data)
      Parses output data for escape sequences and valid control characters CR and LF. See UPOS specification for POSPrinter, chapter Data Characters and Escape Sequences. Returns list of objects that describe all parts of the output string. These objects can be used by validate and print functions to check print data and to generate generic output data. Possible objects in list have one of the following types:
      • PrintData - Class containing character strings with printable characters only. See PrintData for details.
      • ControlChar - Class containing control character CR or LF. While LF should be always valid, CR can be invalid, depending on printer capabilities.
      • EscCut - Class containing information about details of a cut command. See EscCut for details.
      • EscRuledLine - Class containing information about details of a ruled line command. See EscRuledLine for details.
      • EscNormalize - Class containing information about details of a normalize command. See EscNormalize for details.
      • EscLogo - Class containing information about details of a logo command. See EscLogo for details.
      • EscStamp - Class containing information about details of a stamp command. See EscStamp for details.
      • EscBitmap - Class containing information about details of a bitmap command. See EscBitmap for details.
      • EscFeed - Class containing information about details of a feed command. See EscFeed for details.
      • EscEmbedded - Class containing information about details of a embedded data command. See EscEmbedded for details.
      • EscBarcode - Class containing information about details of a barcode command. See EscBarcode for details.
      • EscFontTypeface - Class containing information about details of a font typeface command. See EscFontTypeface for details.
      • EscAlignment - Class containing information about details of an alignment command. See EscAlignment for details.
      • EscScale - Class containing information about details of a scale command. See EscScale for details.
      • EscSimple - Class containing information about details of a simple attribute command. See EscSimple for details.
      • EscLine - Class containing information about details of an added line command. See EscLine for details.
      • EscColor - Class containing information about details of a color setting command. See EscColor for details.
      • EscShade - Class containing information about details of a shading command. See EscShade for details.
      • EscUnknown - Class containing information about details of an unknown escape sequence.
      Parameters:
      data - Character string to be printed. May contain CR, LF and ESC sequences as described in the UPOS specification.
      Returns:
      List of objects that describe all parts of data.
    • plausibilityCheckSlipData

      public void plausibilityCheckSlipData(List<POSPrinterService.PrintDataPart> data) throws jpos.JposException
      Checks whether the given string holds data that cannot be printed precisely on slip as expected. See UPOS method ValidateData for details.
      this method checks only the general ability for those features that can be checked via capabilitys or other property values. More detailed checks must be performed by device specific service implementations.
      Parameters:
      data - Data to be checked. See UPOS method ValidateData for more details.
      Throws:
      jpos.JposException - See UPOS specification of method ValidateData. Error code can be E_ILLEGAL or E_FAILURE.
    • plausibilityCheckReceiptData

      public void plausibilityCheckReceiptData(List<POSPrinterService.PrintDataPart> data) throws jpos.JposException
      Checks whether the given string holds data that cannot be printed precisely on receipt as expected. See UPOS method ValidateData for details.
      this method checks only the general ability for those features that can be checked via capabilitys or other property values. More detailed checks must be performed by device specific service implementations.
      Parameters:
      data - Data to be checked. See UPOS method ValidateData for more details.
      Throws:
      jpos.JposException - See UPOS specification of method ValidateData. Error code can be E_ILLEGAL or E_FAILURE.
    • plausibilityCheckJournalData

      public void plausibilityCheckJournalData(List<POSPrinterService.PrintDataPart> data) throws jpos.JposException
      Checks whether the given string holds data that cannot be printed precisely on journal as expected. See UPOS method ValidateData for details.
      this method checks only the general ability for those features that can be checked via capabilities or other property values. More detailed checks must be performed by device specific service implementations.
      Parameters:
      data - List of objects derived from PrintDataPart to be checked.
      Throws:
      jpos.JposException - See UPOS specification of method ValidateData. Error code can be E_ILLEGAL or E_FAILURE.
    • extendedErrorCheck

      public void extendedErrorCheck(int station) throws jpos.JposException
      Checks whether the selected print station is operational.
      Parameters:
      station - Station to be checked
      Throws:
      jpos.JposException - If station is not present or not operational.