com.sewoo.jpos.printer
Class CPCLPrinter

java.lang.Object
  extended by com.sewoo.jpos.command.CPCL
      extended by com.sewoo.jpos.printer.CPCLPrinter

public class CPCLPrinter
extends CPCL

CPCLPrinter

Since:
1.03

Constructor Summary
CPCLPrinter()
           
CPCLPrinter(java.lang.String charset)
           
 
Method Summary
 int printBitmap(java.lang.String filePath, int printX, int printY)
          Print the bitmap image.
 int printCheck()
          This method is used for printer status checking.
 void sendPrinter()
           
 int status()
          This function is used for getting the printer status.
 
Methods inherited from class com.sewoo.jpos.command.CPCL
clearBuffer, concatText, getBuffer, inverseLine, multiLineData, multiLineText, printBox, printCPCL2DBarCode, printCPCLBarcode, printCPCLImage, printCPCLText, printForm, printGraphic, printLine, resetConcat, resetCountry, resetMagnify, resetMultiLine, setConcat, setContrast, setCountry, setCPCLBarcode, setForm, setFormMode, setJournalMode, setJustification, setMagnify, setMeasure, setMedia, setMultiLine, setPageWidth, setPattern, setSpeed, setTone
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CPCLPrinter

public CPCLPrinter()

CPCLPrinter

public CPCLPrinter(java.lang.String charset)
Method Detail

sendPrinter

public void sendPrinter()
                 throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

printCheck

public int printCheck()
This method is used for printer status checking.


status

public int status()
This function is used for getting the printer status.


printBitmap

public int printBitmap(java.lang.String filePath,
                       int printX,
                       int printY)
                throws java.io.IOException
Print the bitmap image.

Returns:
LKPrint.LK_SUCCESS, LKPrint.LK_FAIL
Throws:
java.io.IOException