Class CatDecoder

java.lang.Object
   |
   +----CatDecoder

public class CatDecoder
extends Object
The "CatDecoder" class provides a means of decoding the :Cue:C.A.T. encrypted string read as though typed on the keyboard by the :Cue:C.A.T. barcode scanner.

These scanners (and their software) are provided "free" by Digital Convergence:.Com (initially through Radio Shack stores).  Each scanner has its own built-in serial number which it reports as part of each scan.  The output of the scanner is (slightly) encrypted using a modified MIME-style base64 pattern with either of 2 exclusive-OR masks (one for the special :Cue:C.A.T. "cues", another for all other bar codes).

Version:
JDK 1.1 (or later)
Author:
David Schnee (dave@schnee.com)

Constructor Index

 o CatDecoder()
Instantiate a CatDecoder object (no arguments).

Method Index

 o CatDecode(String)
Accepts the scanned string, decodes it and returns an indication of whether or not the input is valid (true for "yes", false for "no").

 o getBarcodeType()
Returns the decoded barcode type (or a null string if the input was not valid).

 o getScanData()
Returns the decoded scanned data (or a null string if the input was not valid).

 o getSerialNumber()
Returns the decoded serial number (or a null string if the input was not valid).

Constructors

 o CatDecoder
 public CatDecoder()
Instantiate a CatDecoder object (no arguments).

Methods

 o CatDecode
 public boolean CatDecode(String input)
Accepts the scanned string, decodes it and returns an indication of whether or not the input is valid (true for "yes", false for "no").

 o getSerialNumber
 public String getSerialNumber()
Returns the decoded serial number (or a null string if the input was not valid).

 o getBarcodeType
 public String getBarcodeType()
Returns the decoded barcode type (or a null string if the input was not valid).

 o getScanData
 public String getScanData()
Returns the decoded scanned data (or a null string if the input was not valid).