Package com.google.zxing.oned
Class CodaBarWriter
java.lang.Object
com.google.zxing.oned.OneDimensionalCodeWriter
com.google.zxing.oned.CodaBarWriter
- All Implemented Interfaces:
Writer
This class renders CodaBar as
boolean[]
.- Author:
- dsbnatut@gmail.com (Kazuki Nishiura)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean[]
Encode the contents to boolean array expression of one-dimensional barcode.protected Collection<BarcodeFormat>
Methods inherited from class com.google.zxing.oned.OneDimensionalCodeWriter
appendPattern, checkNumeric, encode, encode, encode, getDefaultMargin
-
Constructor Details
-
CodaBarWriter
public CodaBarWriter()
-
-
Method Details
-
getSupportedWriteFormats
- Overrides:
getSupportedWriteFormats
in classOneDimensionalCodeWriter
-
encode
Description copied from class:OneDimensionalCodeWriter
Encode the contents to boolean array expression of one-dimensional barcode. Start code and end code should be included in result, and side margins should not be included.- Specified by:
encode
in classOneDimensionalCodeWriter
- Parameters:
contents
- barcode contents to encode- Returns:
- a
boolean[]
of horizontal pixels (false = white, true = black)
-