Quick patch to make this work with current writer API

git-svn-id: https://zxing.googlecode.com/svn/trunk@1253 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2010-03-25 15:16:33 +00:00
parent 6e05578429
commit 53dcdf4ffc
3 changed files with 6 additions and 6 deletions

View file

@ -19,7 +19,7 @@ package com.google.zxing.oned;
import java.util.Hashtable;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.WriterException;
import com.google.zxing.common.BitMatrix;
import com.google.zxing.common.ByteMatrix;
/**
* This object renders a CODE128 code as a {@link BitMatrix}.
@ -28,7 +28,7 @@ import com.google.zxing.common.BitMatrix;
*/
public final class Code128Writer extends UPCEANWriter {
public BitMatrix encode(String contents,
public ByteMatrix encode(String contents,
BarcodeFormat format,
int width,
int height,

View file

@ -19,7 +19,7 @@ package com.google.zxing.oned;
import java.util.Hashtable;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.WriterException;
import com.google.zxing.common.BitMatrix;
import com.google.zxing.common.ByteMatrix;
/**
* This object renders a CODE39 code as a {@link BitMatrix}.
@ -28,7 +28,7 @@ import com.google.zxing.common.BitMatrix;
*/
public final class Code39Writer extends UPCEANWriter {
public BitMatrix encode(String contents, BarcodeFormat format, int width, int height,
public ByteMatrix encode(String contents, BarcodeFormat format, int width, int height,
Hashtable hints) throws WriterException {
if (format != BarcodeFormat.CODE_39) {
throw new IllegalArgumentException("Can only encode CODE_39, but got " + format);

View file

@ -19,7 +19,7 @@ package com.google.zxing.oned;
import java.util.Hashtable;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.WriterException;
import com.google.zxing.common.BitMatrix;
import com.google.zxing.common.ByteMatrix;
/**
* This object renders a ITF code as a {@link BitMatrix}.
@ -28,7 +28,7 @@ import com.google.zxing.common.BitMatrix;
*/
public final class ITFWriter extends UPCEANWriter {
public BitMatrix encode(String contents, BarcodeFormat format, int width, int height,
public ByteMatrix encode(String contents, BarcodeFormat format, int width, int height,
Hashtable hints) throws WriterException {
if (format != BarcodeFormat.ITF) {
throw new IllegalArgumentException("Can only encode ITF, but got " + format);