mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 04:54:04 -08:00
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:
parent
6e05578429
commit
53dcdf4ffc
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue