com.citizen.jpos.printer
Class CPCLPrinter

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

public class CPCLPrinter
extends CPCL

CPCLPrinter

Since:
1.03

Constructor Summary
CPCLPrinter()
           
CPCLPrinter(java.lang.String charset)
           
 
Method Summary
 int getEmulation()
          LK-P20 , LK-P21, LK-P31 µî ¿µ¼öÁõ Àü¿ëÀº Áö¿ø ¾ÈÇÔ.
 void printBitmap(android.graphics.Bitmap bmp, int printX, int printY)
           
 int printBitmap(java.lang.String filePath, int printX, int printY)
          Print the bitmap image.
 int printerCheck()
           
 int printerCheck(int timeout)
          This method is used for printer status checking.
 void printForm()
          Used for setting the paper at the top of the form after printing.
 void sendPrinter()
          Deprecated. 
 int status()
          This function is used for getting the printer status.
 double temperature()
           
 double voltage()
           
 
Methods inherited from class com.citizen.jpos.command.CPCL
clearBuffer, concatText, getBuffer, inverseLine, multiLineData, multiLineText, printBox, printCPCL2DBarCode, printCPCLBarcode, printCPCLImage, printCPCLText, 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

@Deprecated
public void sendPrinter()
                 throws java.io.UnsupportedEncodingException
Deprecated. 

Throws:
java.io.UnsupportedEncodingException

printForm

public void printForm()
               throws java.io.UnsupportedEncodingException
Description copied from class: CPCL
Used for setting the paper at the top of the form after printing. CPCLPrinter.printform() : extend format

Overrides:
printForm in class CPCL
Throws:
java.io.UnsupportedEncodingException

printerCheck

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


printerCheck

public int printerCheck()

status

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


getEmulation

public int getEmulation()
LK-P20 , LK-P21, LK-P31 µî ¿µ¼öÁõ Àü¿ëÀº Áö¿ø ¾ÈÇÔ. Getting the Printers emulation.

Returns:

temperature

public double temperature()
Returns:

voltage

public double voltage()
Returns:

printBitmap

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

Returns:
CMPPrint.CMP_SUCCESS, CMPPrint.CMP_FAIL
Throws:
java.io.IOException

printBitmap

public void printBitmap(android.graphics.Bitmap bmp,
                        int printX,
                        int printY)
                 throws java.io.IOException
Throws:
java.io.IOException