Package com.google.zxing.oned
Class EAN13Writer
java.lang.Object
com.google.zxing.oned.OneDimensionalCodeWriter
com.google.zxing.oned.UPCEANWriter
com.google.zxing.oned.EAN13Writer
- All Implemented Interfaces:
Writer
This object renders an EAN13 code as a
BitMatrix.- Author:
- aripollak@gmail.com (Ari Pollak)
-
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.UPCEANWriter
getDefaultMarginMethods inherited from class com.google.zxing.oned.OneDimensionalCodeWriter
appendPattern, checkNumeric, encode, encode, encode
-
Constructor Details
-
EAN13Writer
public EAN13Writer()
-
-
Method Details
-
getSupportedWriteFormats
- Overrides:
getSupportedWriteFormatsin classOneDimensionalCodeWriter
-
encode
Description copied from class:OneDimensionalCodeWriterEncode 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:
encodein classOneDimensionalCodeWriter- Parameters:
contents- barcode contents to encode- Returns:
- a
boolean[]of horizontal pixels (false = white, true = black)
-