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.061

Constructor Summary
CPCLPrinter()
           
CPCLPrinter(DeviceConnection connection)
           
CPCLPrinter(java.lang.String charset)
           
CPCLPrinter(java.lang.String charset, DeviceConnection connection)
           
 
Method Summary
 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.
 int printerResults()
          This method is used for printing results.
 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.
 
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)

CPCLPrinter

public CPCLPrinter(DeviceConnection connection)

CPCLPrinter

public CPCLPrinter(java.lang.String charset,
                   DeviceConnection connection)
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()

printerResults

public int printerResults()
This method is used for printing results.


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.CMP_SUCCESS, LKPrint.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