com.google.zxing.oned

## Class CodaBarWriter

- java.lang.Object
- - com.google.zxing.oned.OneDimensionalCodeWriter
  - - com.google.zxing.oned.CodaBarWriter

- All Implemented Interfaces:
    Writer

      public final class CodaBarWriter
      extends OneDimensionalCodeWriter

  This class renders CodaBar as `boolean[]`.
  Author:
    dsbnatut@gmail.com (Kazuki Nishiura)

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CodaBarWriter()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean[]` | `encode(String contents)` Encode the contents to boolean array expression of one-dimensional barcode.

    - ### Methods inherited from class com.google.zxing.oned.OneDimensionalCodeWriter

      `appendPattern, encode, encode, getDefaultMargin`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### CodaBarWriter

          public CodaBarWriter()

  - ### Method Detail

    - #### encode

          public boolean[] encode(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 `boolean[]` of horizontal pixels (false = white, true = black)

Copyright © 2007–2018. All rights reserved.