Class EAN8Writer

  • All Implemented Interfaces:
    Writer

    public final class EAN8Writer
    extends UPCEANWriter
    This object renders an EAN8 code as a BitMatrix.
    • Constructor Detail

      • EAN8Writer

        public EAN8Writer()
    • Method Detail

      • encode

        public boolean[] encode​(java.lang.String contents)
        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 class OneDimensionalCodeWriter
        Parameters:
        contents - barcode contents to encode
        Returns:
        a byte array of horizontal pixels (false = white, true = black)