Class Decoder
java.lang.Object
com.google.zxing.datamatrix.decoder.Decoder
The main class which implements Data Matrix Code decoding -- as opposed to locating and extracting the Data Matrix Code from an image.
- Author:
- bbrown@google.com (Brian Brown)
- 
Constructor Details- 
Decoderpublic Decoder()
 
- 
- 
Method Details- 
decodeConvenience method that can decode a Data Matrix Code represented as a 2D array of booleans. "true" is taken to mean a black module. - Parameters:
- image- booleans representing white/black Data Matrix Code modules
- Returns:
- text and bytes encoded within the Data Matrix Code
- Throws:
- FormatException- if the Data Matrix Code cannot be decoded
- ChecksumException- if error correction fails
 
- 
decodeDecodes a Data Matrix Code represented as a BitMatrix. A 1 or "true" is taken to mean a black module.- Parameters:
- bits- booleans representing white/black Data Matrix Code modules
- Returns:
- text and bytes encoded within the Data Matrix Code
- Throws:
- FormatException- if the Data Matrix Code cannot be decoded
- ChecksumException- if error correction fails
 
 
-