Class EAN8Writer
java.lang.Object
com.google.zxing.oned.OneDimensionalCodeWriter
com.google.zxing.oned.UPCEANWriter
com.google.zxing.oned.EAN8Writer
- All Implemented Interfaces:
Writer
This object renders an EAN8 code as a
BitMatrix.-
Field Summary
Fields -
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 UPCEANWriter
getDefaultMarginMethods inherited from class OneDimensionalCodeWriter
appendPattern, checkNumeric, encode, encode, encode
-
Field Details
-
CODE_WIDTH
private static final int CODE_WIDTH- See Also:
-
-
Constructor Details
-
EAN8Writer
public EAN8Writer()
-
-
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 byte array of horizontal pixels (false = white, true = black)
-