Package com.google.zxing.oned
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.- Author:
- aripollak@gmail.com (Ari Pollak)
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionboolean[]Encode the contents to boolean array expression of one-dimensional barcode.protected Collection<BarcodeFormat>Methods inherited from class com.google.zxing.oned.UPCEANWritergetDefaultMarginMethods inherited from class com.google.zxing.oned.OneDimensionalCodeWriterappendPattern, checkNumeric, encode, encode, encode
- 
Constructor Details- 
EAN8Writerpublic EAN8Writer()
 
- 
- 
Method Details- 
getSupportedWriteFormats- Overrides:
- getSupportedWriteFormatsin class- OneDimensionalCodeWriter
 
- 
encodeDescription 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 class- OneDimensionalCodeWriter
- Parameters:
- contents- barcode contents to encode
- Returns:
- a byte array of horizontal pixels (false = white, true = black)
 
 
-