Interface SmartcardReader


public interface SmartcardReader
Provides access to the smartcard reader, for printers equipped with one. Note: Not all Zebra printers are available with built-in readers.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Turns the printer's smartcard reader off, if present.
    byte[]
    doCommand(String asciiHexData)
    Sends a CT_DATA command to the printer's smartcard reader, if present.
    byte[]
    Sends a CT_ATR command to the printer's smartcard reader, if present.
  • Method Details

    • getATR

      byte[] getATR() throws ConnectionException
      Sends a CT_ATR command to the printer's smartcard reader, if present.
      Returns:
      A byte array containing the response from the smartcard reader.
      Throws:
      ConnectionException - if an I/O error occurs.
    • doCommand

      byte[] doCommand(String asciiHexData) throws ConnectionException
      Sends a CT_DATA command to the printer's smartcard reader, if present.
      Parameters:
      asciiHexData - data to be sent to the smartcard using the CT_DATA card command.
      Returns:
      A byte array containing the response from the smartcard reader.
      Throws:
      ConnectionException - if an I/O error occurs.
    • close

      void close() throws ConnectionException
      Turns the printer's smartcard reader off, if present. This call should be made after communicating with the smartcard via the doCommand(String) method.
      Throws:
      ConnectionException - if an I/O error occurs.