Slide 11
Slide 11 text
Java: OneDReader, Code128Readerの実装
public abstract class OneDReader implements Reader {
@Override
public Result decode(BinaryBitmap image, 略) throws NotFoundException, FormatException {
...
Result result = decodeRow(rowNumber, row, hints);
...
}
public abstract Result decodeRow(int rowNumber, BitArray row, Map hints)
throws NotFoundException, ChecksumException, FormatException;
}
public final class Code128Reader extends OneDReader {
@Override
public Result decodeRow(int rowNumber, BitArray row, Map hints)
throws NotFoundException, ChecksumException, FormatException {
...
}
}