ITFWriter (ZXing 3.5.2 API)
Description: declaration: package: com.google.zxing.oned, class: ITFWriter

Package com.google.zxing.oned

# Class ITFWriter

java.lang.Object
com.google.zxing.oned.OneDimensionalCodeWriter
com.google.zxing.oned.ITFWriter

All Implemented Interfaces:
  `Writer`

public final class ITFWriter extends OneDimensionalCodeWriter
This object renders a ITF code as a `BitMatrix`.

Author:
  erik.barbara@gmail.com (Erik Barbara)

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ITFWriter()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean[]`
  `encode(String contents)`
  Encode the contents to boolean array expression of one-dimensional barcode.
  `protected Collection<BarcodeFormat>`
  `getSupportedWriteFormats()`

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

  `appendPattern, checkNumeric, encode, encode, encode, getDefaultMargin`

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

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

- ## Constructor Details

  - ### ITFWriter

    public ITFWriter()

- ## Method Details

  - ### getSupportedWriteFormats

    protected Collection<BarcodeFormat> getSupportedWriteFormats()
    Overrides:
      `getSupportedWriteFormats` in class `OneDimensionalCodeWriter`

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