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 aBitMatrix.
-
-
Field Summary
Fields Modifier and Type Field Description private static int[]END_PATTERNprivate static intNprivate static int[][]PATTERNSprivate static int[]START_PATTERNprivate static intW
-
Constructor Summary
Constructors Constructor Description ITFWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean[]encode(java.lang.String contents)Encode the contents to boolean array expression of one-dimensional barcode.protected java.util.Collection<BarcodeFormat>getSupportedWriteFormats()-
Methods inherited from class com.google.zxing.oned.OneDimensionalCodeWriter
appendPattern, checkNumeric, encode, encode, encode, getDefaultMargin
-
-
-
-
Field Detail
-
START_PATTERN
private static final int[] START_PATTERN
-
END_PATTERN
private static final int[] END_PATTERN
-
W
private static final int W
- See Also:
- Constant Field Values
-
N
private static final int N
- See Also:
- Constant Field Values
-
PATTERNS
private static final int[][] PATTERNS
-
-
Method Detail
-
getSupportedWriteFormats
protected java.util.Collection<BarcodeFormat> getSupportedWriteFormats()
- Overrides:
getSupportedWriteFormatsin classOneDimensionalCodeWriter
-
encode
public boolean[] encode(java.lang.String contents)
Description 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 classOneDimensionalCodeWriter- Parameters:
contents- barcode contents to encode- Returns:
- a
boolean[]of horizontal pixels (false = white, true = black)
-
-