Package com.google.zxing.oned
Class Code128Writer
java.lang.Object
com.google.zxing.oned.OneDimensionalCodeWriter
com.google.zxing.oned.Code128Writer
- All Implemented Interfaces:
Writer
This object renders a CODE128 code as a
BitMatrix
.- Author:
- erik.barbara@gmail.com (Erik Barbara)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean[]
Encode the contents to boolean array expression of one-dimensional barcode.boolean[]
encode
(String contents, Map<EncodeHintType, ?> hints) Can be overwritten if the encode requires to read the hints map.protected Collection<BarcodeFormat>
Methods inherited from class com.google.zxing.oned.OneDimensionalCodeWriter
appendPattern, checkNumeric, encode, encode, getDefaultMargin
-
Constructor Details
-
Code128Writer
public Code128Writer()
-
-
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)
-
encode
Description copied from class:OneDimensionalCodeWriter
Can be overwritten if the encode requires to read the hints map. Otherwise it defaults toencode
.- Overrides:
encode
in classOneDimensionalCodeWriter
- Parameters:
contents
- barcode contents to encodehints
- encoding hints- Returns:
- a
boolean[]
of horizontal pixels (false = white, true = black)
-