com.google.zxing.oned

## Class Code93Writer

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

- All Implemented Interfaces:
    Writer

      public class Code93Writer
      extends OneDimensionalCodeWriter

  This object renders a CODE93 code as a BitMatrix

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Code93Writer()`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected static int` | `appendPattern(boolean[] target, int pos, int[] pattern, boolean startColor)` Deprecated. without replacement; intended as an internal-only method
    `boolean[]` | `encode(String contents)` Encode the contents to boolean array expression of one-dimensional barcode.
    `BitMatrix` | `encode(String contents, BarcodeFormat format, int width, int height, Map<EncodeHintType,?> hints)` Encode the contents following specified format.

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

      `encode, getDefaultMargin`

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

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

- - ### Constructor Detail

    - #### Code93Writer

          public Code93Writer()

  - ### Method Detail

    - #### encode

          public BitMatrix encode(String contents,
                                  BarcodeFormat format,
                                  int width,
                                  int height,
                                  Map<EncodeHintType,?> hints)
                           throws WriterException

      Description copied from class: `OneDimensionalCodeWriter`
      Encode the contents following specified format. `width` and `height` are required size. This method may return bigger size `BitMatrix` when specified size is too small. The user can set both `width` and `height` to zero to get minimum size barcode. If negative value is set to `width` or `height`, `IllegalArgumentException` is thrown.
      Specified by:
        `encode` in interface `Writer`
      Overrides:
        `encode` in class `OneDimensionalCodeWriter`
      Parameters:
        `contents` - The contents to encode in the barcode
        `format` - The barcode format to generate
        `width` - The preferred width in pixels
        `height` - The preferred height in pixels
        `hints` - Additional parameters to supply to the encoder
      Returns:
        `BitMatrix` representing encoded barcode image
      Throws:
        `WriterException` - if contents cannot be encoded legally in a format

    - #### 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)

    - #### appendPattern

          @Deprecated
          protected static int appendPattern(boolean[] target,
                                                         int pos,
                                                         int[] pattern,
                                                         boolean startColor)

      Deprecated. without replacement; intended as an internal-only method
      Parameters:
        `target` - output to append to
        `pos` - start position
        `pattern` - pattern to append
        `startColor` - unused
      Returns:
        9

Copyright © 2007–2018. All rights reserved.