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)
-
CatDecoder()
- Instantiate a CatDecoder object (no arguments).
-
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").
-
getBarcodeType()
- Returns the decoded barcode type (or a null string if the input
was not valid).
-
getScanData()
- Returns the decoded scanned data (or a null string if the input
was not valid).
-
getSerialNumber()
- Returns the decoded serial number (or a null string if the input
was not valid).
CatDecoder
public CatDecoder()
- Instantiate a CatDecoder object (no arguments).
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").
getSerialNumber
public String getSerialNumber()
- Returns the decoded serial number (or a null string if the input
was not valid).
getBarcodeType
public String getBarcodeType()
- Returns the decoded barcode type (or a null string if the input
was not valid).
getScanData
public String getScanData()
- Returns the decoded scanned data (or a null string if the input
was not valid).