|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.zxing.oned.AbstractUPCEANWriter
public abstract class AbstractUPCEANWriter
Encapsulates functionality and implementation that is common to UPC and EAN families of one-dimensional barcodes.
| Constructor Summary | ||
|---|---|---|
AbstractUPCEANWriter()
|
||
| Method Summary | ||
|---|---|---|
protected static int |
appendPattern(byte[] target,
int pos,
int[] pattern,
int startColor)
Appends the given pattern to the target array starting at pos. |
|
abstract byte[] |
encode(String contents)
|
|
ByteMatrix |
encode(String contents,
BarcodeFormat format,
int width,
int height)
Encode a barcode using the default settings. |
|
ByteMatrix |
encode(String contents,
BarcodeFormat format,
int width,
int height,
Hashtable hints)
Encode a barcode using the provided parameters. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractUPCEANWriter()
| Method Detail |
|---|
public ByteMatrix encode(String contents,
BarcodeFormat format,
int width,
int height)
throws WriterException
Writer
encode in interface Writercontents - The contents to encode in the barcodeformat - The barcode format to generatewidth - The preferred width in pixelsheight - The preferred height in pixels
WriterException
public ByteMatrix encode(String contents,
BarcodeFormat format,
int width,
int height,
Hashtable hints)
throws WriterException
Writer
encode in interface Writercontents - The contents to encode in the barcodeformat - The barcode format to generatewidth - The preferred width in pixelsheight - The preferred height in pixelshints - Additional parameters to supply to the encoder
WriterException
protected static int appendPattern(byte[] target,
int pos,
int[] pattern,
int startColor)
startColor - starting color - 0 for white, 1 for black
public abstract byte[] encode(String contents)
encode in interface UPCEANWriter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal